Home |
Last modified: 16-06-2020 |
Although Unison uses the local host's clock to check whether a file has been modified, and hence, is not affected if the local and remote hosts' clocks are not in sync, you might want to ensure that they are. See Synchronizing hosts through NTP for more infos. This also includes taking account the time zone parameter if the two hosts are not located in the same area.
unison -socket NNNN
, where NNNN is any available port number. An important difference with SSH, is that in this mode, paths specified by the client host are interpreted relative to the directory where the Unison server is started on the remote host instead of the user's home directory.
Synchronize a local directory with unison a.tmp socket://remotehostname:NNNN/a.tmp
ssh remotehostname unison -version
.
If that works, cd to your home directory, and synchronize the local a.tmp sub-directory to you home directory on the remote host: unison a.tmp ssh://remotehostname/a.tmp
. If the user account that you use to log on to the local host is different from the one on the remote host whose home directory contains the target directory, run unison a.tmp ssh://username@remotehostname/a.tmp
.
Cygwin's port of openssh Add an SSHDIR environment variable that points to where SSH.EXE is located, and add it to the PATH variable. Create a HOME variable that points to your (guess what) home directory on the local host. This directory will contain a .ssh sub-directory to host SSH's configuration files.
Open a DOS box, and type the following to check that your SSH client can connect to the remote SSH server: ssh
If you use CygWin, add the following to your .bashrc file: export PATH=$PATH:SSHDIR (If .ssh is located on the C:\ partition, SSHDIR = /cygdrive/c/ssh).
If you are logged in with a different user name on the local and remote hosts, provide your remote user name when providing the remote root (i.e., //username@host/path...).
Building Unison from scratch
Note: For best performances, build Unison with the NATIVE=true switch to take advantage of the native-code OCaml compiler. For maximum portability, use make STATIC=true. For debugging purposes, run make DEBUGGING=true .
Unix
Windows
Upgrading Unison
All replicas should be synchronized before moving to a newer release of Unison, to protect against changes in archive formats.
Troubleshooting
First, try to run Unison in debug mode (-debug all). If the error is not obvious, check the version of Unison you are running (unison -version), check the archives of the mailing list . If all else fails, end mail to
unison-help@cis.upenn.edu.Resources