Jump to content

Getting an "Insecure Connection" warning for Exisle? No worry

Details in this thread

rsync incremental backups

  • Please log in to reply
No replies to this topic

#1 Zanthra

  • Islander
  • 1,844 posts

Posted 16 March 2014 - 07:43 PM

One of the problems I have been having with rsync for backups is that if a file is moved on the source, then it will be duplicated on the rsync backup.  To solve that I could just use the --delete option, but then if I delete a file, run the backup, I can't get that file back from the backup.

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.

0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users