One for the RSync gods

Associate
Joined
19 Jun 2003
Posts
1,680
Location
West Yorks, UK
Hi all,
Any RSync boffins in here?

I want to synchronise two folders using Rsync. I have tried using the --delete flag to make sure any files deleted from the source are deleted from the destination. However, what I want is for any files deleted from the source to not be deleted on the destination, but moved into an "Archive" folder. So you would have 2 folders, "Live" and "Archive". Live would be an exact copy of the source, and Archive would contain any files marked for deletion.

Is this possible with Rsync?

Cheers,
Matt
 
Cheers matey. I've sorted it out however. The trick is in the --backup flag. If you set the --delete flag, and the --backup one (with folder specified), and deleted files will go into that folder. This works spot on for me.

Cheers,
Matt
 
Back
Top Bottom