PDA

View Full Version : [ubuntu] Two-way rsync



reedk
March 9th, 2011, 04:55 AM
I'm trying to set up rsync to sync two directories that may have changed on either side.

That is, I may have added files on either side A or B, and want one command that will add anything from either side to the other.

I would also like to remove files from either side that have deleted on the other, though I'm not sure this is possible.

Is there one rsync option recipe that will do this, or do I have to do this as two commands, one for each direction?