mirroring in both directions with rsync

Steve Bonds knnf6cy7w001 at sneakemail.com
Fri Jul 30 15:11:26 GMT 2004


On Fri, 30 Jul 2004, Matt Jaffe mjaffe-at-scires.com |Rsync List| wrote:

> When operating in daemon mode, will rsync check to see which file is
> newer and decide which direction to transfer based on that?  Example, We
> have 2 terminal servers, A and B.  I want users to be able to work on
> either server and have their home directories on both stay in sync.  If
> a user logs into server A and changes files, the server would know to
> transfer the file from A to B.  If they log into server B, rsync
> transfers from B to A.

rsync is designed to be a unidirectional transfer program, like rcp/scp,
only with the addition of its clever bandwidth reduction algorithm.

For a two-way sync, try Unison:

http://www.cis.upenn.edu/~bcpierce/unison/

  -- Steve


More information about the rsync mailing list