【问题标题】:unison force option not recognized一致力选项无法识别
【发布时间】:2017-12-29 18:27:05
【问题描述】:

我正在尝试使用 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 选项。 请注意,我想使用命令行而不为每个目录创建配置文件。

【问题讨论】:

    标签: unison


    【解决方案1】:

    ok 发现必须在末尾插入-force,重复必须镜像的路径:

    unison /home/localuser/test_sync ssh://anuser@192.168.1.111//home/anuser/test_sync -force /home/localuser/test_sync
    

    【讨论】:

      猜你喜欢
      • 2015-10-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-13
      • 2014-08-21
      • 2020-07-02
      • 2018-02-06
      • 2020-05-17
      相关资源
      最近更新 更多