[Solved] Ubuntu Cronjob with rsync

To reduce the amount of space you use significantly, you’ll need to reduce the number of copies you keep. This is the 2nd argument to the script. So if you run every 3 days, and want to keep a month of backups, change it to: ../rsyncsnapshot.sh daily 10 0 solved Ubuntu Cronjob with rsync

[Solved] Store rsync error in variable

The line you have put here will just store that command as a string and not run it. rsync_error=”rsync -arzt –ignore-existing –delete –max-delete=1 -e ‘ssh’ [email protected]:$rsync_from_location $rsync_to_location” To capture its output you would need to put it in a $( ) like so. rsync_error=$(rsync -arzt –ignore-existing –delete –max-delete=1 -e ‘ssh’ [email protected]:$rsync_from_location $rsync_to_location) This will capture … Read more