web-dev-qa-db-fra.com

Aide à synchroniser Unison

J'essaie d'obtenir qu'Unison synchronise deux dossiers, un sur mon ordinateur Ubuntu et un sur mon Mac. (J'ai pu faire fonctionner Rsync plus tôt, mais je veux une synchronisation bidirectionnelle, donc je regarde Unison). Comme test, j'ai créé un dossier simple sur ma machine Ubuntu nommé syncTest qui contient deux fichiers texte, file1.txt et file2.txt. Ensuite, j'ai utilisé cette commande:

unison ~/syncTest/ ssh://[email protected]//Users/Admin/syncTest

La sortie de la commande est la suivante:

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]

À ce stade, rien ne se passe plus. Il semble rester indéfiniment sur mon ordinateur Ubuntu. Des idées sur ce qui pourrait mal se passer?

Je vous remercie!

1
Notre

Vous devrez appuyer sur le f-clé. Unison vous attend pour confirmer la poursuite de la synchronisation. La flèche signifie qu'elle se synchronisera de local à MacBook.l.

2
Mitra Mai