LWN.net Logo

Unison!

Unison!

Posted May 13, 2011 20:38 UTC (Fri) by martin.langhoff (subscriber, #61417)
Parent article: DVCS-autosync

I have done this, for many years, across various OSs, with unison. Many file/folder sync tools came and went; MS desktops had various flawed incarnations of "my briefcase"; Novell had one that they pimped for very nice profit; but none never as good as Unison.

Some pretty UIs for unison exist, at least on Mac and Linux -- last I tried ~10 years ago it also worked on Windows but you had to get cygwin's ssh going.

Unison is the measure of file sync tools. Is this DVCS-autosync gadget as good as unison across the board? Better in some clear, significant way? Enlighten us!


(Log in to post comments)

Unison!

Posted May 13, 2011 20:54 UTC (Fri) by hisdad (subscriber, #5375) [Link]

I tried to get unison to work for me.
According to the docs it would only work if all copies on all platforms were the same version.

Because I'm running different distros, -- including windows --, this never seemed possible.

If you have had success, I suppose this may be a documentation error.

--John

Unison!

Posted May 13, 2011 21:06 UTC (Fri) by JohnMorris (subscriber, #73531) [Link]

I have the same problem with Unison, to the extent that I now keep the installation files for one particular old version around to use every time I get a new machine.

Unison works well for synchronizing between two machines, and that's how I use it, to sync work files between home and work desktops. With three or more computers, though, you have to be careful what order you synchronize between them, or else things get into a mess. This is a result of its batch oriented way of working - syncs are manually initiated - and the lack of a central master repository which everything else syncs to. To be fair to the Unison authors, they do suggest that to keep multiple computers synced up one of them should be designated as the master and all others should sync only to/from that one.

Dropbox - which I also use, to keep my personal files co-ordinated between four or five computers - on the other hand is much friendlier in this regard, as it records deltas immediately.

Unison!

Posted May 15, 2011 0:11 UTC (Sun) by Velmont (guest, #46433) [Link]

It is easy to build something similar around this. Using inotify, or incron, you can wait for close-signal, and then run unison on just that path-tree automatically.

I do something like that, only a bit less advanced with my unison script. I really love Unison, and it blows the butt of Dropbox and has for my kind of use. :-)

I have many machines, all of them using unison-323, it's not hard to standardize on a version, although yes, this could be easier.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds