本文共 982 字,大约阅读时间需要 3 分钟。
Any good tools to synchronize home directories on boxes?
有什么好的工具可以在机器上同步主目录?
Many have several PC/laptops and consequently many home directories. There is home directory synchronizing problem.
许多计算机具有多个PC /笔记本电脑,因此具有许多主目录。 存在主目录同步问题。
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 :
通过同步两个主目录:
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,,.thunderbird/*/ImapMail/}" ./ ssh://example.org/
翻译自:
转载地址:http://ypowd.baihongyu.com/