2003-02-25T08:52:38 va_public <[EMAIL PROTECTED]>:
> --- In [EMAIL PROTECTED], Wayne Davison <[EMAIL PROTECTED]> wrote:
> > On Mon, Feb 24, 2003 at 08:13:15PM -0800, Len Sh wrote:
> > > I need to be-able to sync both ways so the files can be changed on
> > > either server? 
> > 
> > I recommend using the program "unison" for this -- I find it to be
> > indispensable.
> 
> Why not just use rsync as mentioned in the FAQ for this?
> 
> rsync --update source target
> rsync --update target source

The difference is there's a problem unison solves, that rsync
cannot.

Suppose a file is updated on both sides, between syncs?

Rsync has no way of knowing that that has happened; in the above
back-n-forth --update, rsync will overwrite the older file with the
newer; the edits made first will be lost.

Unison can recognize this situation and report the conflicting
edits.

This is possible because Unison keeps some private data, notes to
itself describing the last state in which it left the files.

Rsync on the other hand looks at only the actual state of the files
as found on disk, it has no private notes to itself. This is a
strength in some applications and a weakness in others. The two
tools solve different problems, albeit with some overlap.

-Bennett

Attachment: pgp00000.pgp
Description: PGP signature

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html

Reply via email to