Code Sample |
folder_to_backup="/path/to/myfolder" backup_name="mybackupname" backup_location="/path/to/mybackuplocation" backup_name="${backup_name}-`date +%a`.tar.gz" cd "$backup_location" rm -f "$backup_name" tar zcvf "$backup_name" "$folder_to_backup" |
Quote |
For instance I have no idea why the OSX script would be bad. |
Quote |
I'm trying to backup a file once a day such that I have a weekly archive of the file... |
Quote |
creating a zip file of a critical directory and then copying it over to a dedicated usb stick. |
Quote |
I'm quite rusty at interpreting what the offered examples do. |