rsync to ONLY keep files in destination that have been removed from source
- by David Corley
We use rsync to copy filesystem contents from one machine to another as a backup.
We first run MACHINE-X-MACHINE-Y rsync for a straight backup with the --delete and --delete-excluded switches
We also run an internal Rsync between the MACHINE-Y destination, and another folder on MACHINE-Y with either of the delete flags. This maintains a…