我正在尝试使用unison和选项"-force“在可访问的ssh服务器上进行本地目录和远程目录的单向同步(即镜像),但是命令无法识别:
$ unison -force /home/localuser/test_sync ssh://anuser@192.168.1.111//home/anuser/test_sync
Usage: unison [options]
or unison root1 root2 [options]
or unison profilename [options]
For a list of options, type "unison -help". For a tutorial on basic usage, type "unison -doc tutorial". For other documentation, type "unison -doc topics".已尝试多种变体,但似乎无法识别-force选项。请注意,我希望使用命令行,而不是为每个目录创建配置文件。
发布于 2017-12-30 03:57:46
ok发现必须在末尾插入-force,重复必须镜像的路径:
unison /home/localuser/test_sync ssh://anuser@192.168.1.111//home/anuser/test_sync -force /home/localuser/test_synchttps://stackoverflow.com/questions/48026813
复制相似问题