[nSLUG] How to sync two directory trees

Hatem Nassrat hnassrat at gmail.com
Wed May 27 08:32:17 ADT 2009


On Wed, May 27, 2009 at 4:43 AM, Ian Campbell <ian at slu.ms> wrote:
> On Wed, May 27, 2009 at 03:18:41AM -0300, Mike Spencer wrote:
>>
>> Is there an easy way to sync or update two nearly identical directory
>> trees?
>>
[...]
> Yes, there is an easy way.
>
> http://www.cis.upenn.edu/~bcpierce/unison/

I second that. This is the best program in existence. Well at-least
for syncing directories.

[...]

> Works similarly to rsync (think it uses the same diff backend), works

But it does two way merging (ofcourse this may not work for binary files :))

> over ssh/rsh/whatever, and just like rsync requires unison to be
> installed on both sides.

whatever includes:

windows file protocol (//machine/dir/subdir), and its own protocol
they call socket (where you run unison on one of the sides as a
server. See http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html#roots
for more info.


-- 
Hatem Nassrat



More information about the nSLUG mailing list