I am thinking of using an incremental backup to solve the problem, but I want the latest version of the backup to be the one easily retrieved. My thought is to use the batch mode of rsync to solve the problem.
First I will run a reverse backup to write a batch file, such as:
rsync -write-batch=revert.rsync -a -r --delete /backupdir /sourcedir
Then I run the actual rsync to bring the backup directory to the source directory.
rsync -a -r --delete /sourcedir /backupdir
Now /backupdir has the files that the source directory has, and a batch file that can be run to revert it to the previous backup.
Has anyone done this sort of thing before? Are there better tools for doing what I am doing?
Edited by Zanthra, 16 March 2014 - 07:48 PM.