Backups That Work: rsync

rsync -a copies a folder and, every time after the first, only the files that changed; a slash at the end of the source means "what's inside"; --delete makes the backup a mirror, so rehearse it with -n first; and a backup counts only once you've restored from it and compared the result with diff -r.

Updated

Cheat sheet for the lesson Backups That Work: rsync: rsync -a copies a folder and, every time after the first, only the files that changed; a slash at the end of the source means "what's inside"; --delete makes the backup a mirror, so rehearse it with -n first; and a backup counts only once you've…
Category
Bash
Level
Journeyman
Tags
backup, diff, dry-run, linux, rsync, unix