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:

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://



Ignoring some directories:

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



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://



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