Bash - Create a backup of a file or directory

1
2
# @param String $path when path is a file, a copy is made with .bak appended to it's name.
# if path is a directory, a compressed tarball will be made of the directory
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.