0

我想同步两台相似的电脑,只更新几个文件。因此,我想执行 Unison 并忽略除不同路径中的文件列表之外的所有内容。

就像是:

# /usr/bin/unison-gtk /home/ ssh://root@192.168.0.199:22//home/ -ignore "Name *" -ignorenot "Name {config/text.cfg, Pictures/test.jpg, Desktop/test.mp3"

或者从根目录开始更好:

# /usr/bin/unison-gtk / ssh://root@192.168.0.199:22// -ignore "Name *" -ignorenot "Name {/home/config/text.cfg, /home/Pictures/test.jpg, /usr/local/bin/test.sh"

第一个忽略是排除其他所有内容,因此 ignorenot 不会捕获它们。有什么帮助吗?任何人都可以帮忙吗?我没有发现任何东西对我有帮助。

4

1 回答 1

1

在其他地方得到了解决方案。可以多次使用路径:

/usr/bin/unison-gtk / ssh://root@192.168.0.100:22// -path home/config/text.cfg -path /home/Pictures/test.jpg -path /usr/local/bin/test.sh"
于 2021-11-23T20:16:03.033 回答