$ rsync -Ravn --size-only --compare-dest=/path_to_backupdir/$(ls -t | head -1)/ ~/ /path_to_backupdir/$(date +'%Y-%m-%d')/The command backups everything in the /home/$USER directory.
Backup will get its name from the current date. Only difference to last
backup will be made (very fast & saves the disk space) so it is possibly to recover to any prior date.
End slashes (/) in the backup command are mandatory.
You can replace --size-only with --checksum for more thorough file differences validation, but it takes longer to execute.
Remove 'n' from rsync -Ravn command to leave dry-run mode (= stop testing the command without actual changes be made)
P.S. Never ever loose your Thunderbird mail :) any more!
by David Winterbottom (codeinthehole.com)
from All commands http://ift.tt/1Nv1H08
No comments:
Post a Comment