Помогите синхронизировать Unison
Я пытаюсь заставить Unison синхронизировать две папки, одну на моем компьютере с Ubuntu и одну на моем Mac. (Мне удалось заставить Rsync работать раньше, но я хочу двунаправленную синхронизацию, поэтому я смотрю на Unison). В качестве теста я создал на своем компьютере с Ubuntu простую папку с именем syncTest, которая содержит два текстовых файла: file1.txt и file2.txt. Затем я использовал эту команду:
unison ~/syncTest/ ssh://admin@Macbook.local//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
,