我正在尝试让 Unison 同步两个文件夹,一个在我的 Ubuntu 计算机上,另一个在我的 Mac 上。(我之前能够让 Rsync 工作,但我想要双向同步,所以我正在研究 Unison)。作为测试,我在我的 Ubuntu 机器上创建了一个名为 syncTest 的简单文件夹,其中包含两个文本文件,file1.txt 和 file2.txt。然后我使用了这个命令:
unison ~/syncTest/ ssh://[email protected]//Users/Admin/syncTest
该命令的输出如下:
Contacting server...Connected [//MacBook.local//Users/Admin/syncTest -
> //notre-ubuntu//home/notre/syncTest]
Looking for changes
Warning: No archive files were found for these roots, whose canonical
names are:
/home/notre/syncTest
//MacBook.local//Users/Admin/syncTest
This can happen either
because this is the first time you have synchronized these roots,
or because you have upgraded Unison to a new version with a different
archive format.
Update detection may take a while on this run if the replicas are
large.
Unison will assume that the 'last synchronized state' of both
replicas was completely empty. This means that any files that are
different will be reported as conflicts, and any files that exist
only on one replica will be judged as new and propagated to the other
replica. If the two replicas are identical, then no changes will be
reported.
If you see this message repeatedly, it may be because one of your
machines is getting its address from DHCP, which is causing its host
name to change between synchronizations. See the documentation for
the UNISONLOCALHOSTNAME environment variable for advice on how to
correct this.
Donations to the Unison project are gratefully accepted:
http://www.cis.upenn.edu/~bcpierce/unison
Press return to continue.[<spc>] Waiting for changes from server
Reconciling changes
local MacBook.l...
dir ----> / [f]
此时,没有进一步发生任何事情。它似乎无限期地停留在我的 Ubuntu 计算机上。有什么想法可能出了什么问题吗?
谢谢你!
答案1
您必须按下f- 键。Unison 正在等待您确认是否继续同步。箭头表示它将从 同步local
到MacBook.l
。