Unison

From LQWiki
Jump to navigation Jump to search

Unison is a cross-platform file synchronization utility that shares many of the same benefits and concepts as other backup and synchronization tools such as rsync, SVN, CVS, etc. It provides users with much needed interactive control over complex bi-directional changes and bit-level differential file transfers.

Install it

To install Unison, follow the means of your distribution as described under installing software. If this is not possible, you need to compile Unison as described below for SUSE Linux Enterprise Server 11 Service Pack 1.

  • install gcc and ocaml
Open a console and enter
yast -i gcc-c++ ocaml
  • download and unpack unison
  • install unison
make && make install

Web Site

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

Stable User Manual

http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html

Local file synchronization

To run Unison to compare two directories on the same computer, start it like this:

unison /directory1 /directory2

Remote file synchronization via SSH ( secure )

To synchronize between two computers over the network, use the ssh:// prefix. In this example, our computers are named mars and earth:

mars:/ # unison /srv/www/htdocs/mediawiki ssh://earth//srv/www/htdocs/mediawiki

See also