[PLUG] Unison/rsync/git for three way file sync

Bill Barry bill at billbarry.org
Mon Jan 16 21:23:30 UTC 2012


On Mon, Jan 16, 2012 at 1:09 PM, Keith Lofstrom <keithl at kl-ic.com> wrote:
> My wife is now regularly using three different linux machines;
> her laptop, her work desktop, and the mail server here.  I
> am thinking of some way to share a small directory of work
> files between all three machines, without depending on a
> remotely mounted filesystem (the machines can be connected,
> but often are not).
>
> One possibility is a hacked version of rsync/unison
> (www.cis.upenn.edu/~bcpierce/unison/) which uses rsync
> twice to syncronize pairs of directories.  Three directories
> would require 6 rsyncs using the mail server as a hub.
> It would be nice to include something that works like
> a trash bin.  If she moves a file to the trash directory,
> the syncing process would figure that out and move the
> file to the trash on the other machines, and erase trash
> files on the rest when they were erased on the first.

Here is a solution that uses rsync  and inotify
https://github.com/philcryer/lipsync

Bill



More information about the PLUG mailing list