Synchronizing home directories

Any good tools to synchronize home directories on Linux boxes?

Many have several PC/laptops and consequently many home directories. There is home directory synchronizing problem.

unison is a good tool to do this:

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

http://www.watzmann.net/blog/2009/02/my-homedirs-in-unison.html

http://www.cis.upenn.edu/~bcpierce/papers/index.shtml#File%20Synchronization

Useful script:

$ unison -batch  -ui text ./ /mnt/homebak/zma/

In text user interface, synchronizing two directories in batch mode (without asking any question).

Synchronize two home directories over ssh:

Under your home directory:

$ unison -batch  -ui text ./ ssh://example.org/

Ignoring some directories:

$ unison -batch -ui text -ignore "Path {.cache,.config/google-chrome}" ./ ssh://example.org/

A more “practical” one with most of common not-to-sync directories:

$ unison 
-ui text -batch 
-ignore "Path {*/.git,*/Cache,.*/Cache,.cache,.config/google-chrome,Dropbox,.thunderbird/*/ImapMail/}" 
./  ssh://example.org/
Leave a Reply

Your email address will not be published. Required fields are marked *