Synchronizing home directories

Any good tools to synchronize home directories on Linux boxes?
asked Jan 19, 2013 by forum (2,150 points)

1 Answer

 
Best answer

 

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/

 

 

answered Jan 20, 2013 by SA (14,760 points)
selected Jan 20, 2013 by SA

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...