rsync - delete from desination
Posted on 2012-09-17
I need to syncronise 2 folders between servers, serverA always has the right files and folder structure on it, however server B can have files and folders from that need to be deleted and/or replaced by the folder and file structure on ServerA.
Although I understand I could delete and start again, the idea is the users can do whatever they want during the day (create modify and delete) then overnight everything is replaced with the copy from ServerA.
We have limited bandwith between sites, so dont want to delete everything and then copy the folder structure again overnight.
Ive been reading up, and it seems RSync is going to be the best thing to use, however I cannot find anything about deleting from the destination if its not on the serverA
Does anyone have any notes or samples from what they have done in the past?