Robert Slade wrote:
you can only do one way at a time, so what you need to do is:
rsync <options> machine_A:/pathA machine_B:/pathB
rsync <options> machine_B:/pathB machine_A:/pathA
Then what you need is to find the correct options so that the first
rsync does not overwrite files that should have been synced the other
way. options -u and -t seems to do that.
You can do this as a batch script on just one of the machines, so you
don't get any race conditions.
My options are -Cuvaz, but I only sync one way.
You should be carefull: if clocks on the servers are out of sync, you
may get syncing the wrong way! and you will have problems deleting
files, this has to be done both places.
If you instead can assing one machine as master and the other as slave,
so you only sync one way, then you avoid all these problems.
Ph: +34.666334818 web: http://www.locolomo.org
S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt
Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22 :DE:4C:B9
Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73 :25:67:C2