Add this page to your book
Remove this page from your book
Unison File Synchronizer
Unison is a cross-platform and robust file synchronisation tool. Version 2.13.16 of Unison is installed on both fileservers
- Unison File Synchronizer: Liberation through Data Replication is an excellent introduction to Unison
Installation and Use
- Install Unison using MacPorts (former DarwinPorts). See http://www.macgeekery.com/gspot/2006-07/complete_bi_directional_home_sync_and_backup_with_unison for a short tutorial on installing unison.
- Unison wiki has a specific section on unison and OSX
Tips and Tricks
- You should use
sshto connect to the server, by specifying one of the roots as ssh://email@example.com/home folder. To discover the exact path of your home folder you can connect to the server via ssh and type pwd on the command line. E.g. my unison configuration file contains the line
root = ssh://firstname.lastname@example.org//home/professors/stessaris
- Under some circumstances Excel modifies its files without changing the timestamps. Obviously, this confuses file synchronization tools. If you get an error on an excel file you can fix if by updating the timestamp of the file with the command line
touchfilename and running unison again.
Install Unison on Windows to syncronize data between Windows and Linux using SSH
Download Software Packages from Internet or from our local Repository!
Install all 4 Packages
- Run gtk-runtime-2.12.1-rev-b.exe by default installed in C:\Program Files\Common Files\GTK\2.0
- Copy ssh.exe in C:\WINDOWS\
- Create folder Unison in C:\Program Files\ and extract Unison-2.27.57 Gtk+.exe, if you want to use the graphical interface to the newly created folder
- Extract from unison-ssh.zip the file plink.exe and place it in C:\WINDOWS\
Add bin gtk-runtime to PATH
- Select My Computer → Properties → Advanced
- Environment Variables → System Variables: Click on Path and press Edit
- Go to the end of the line and insert :C:\Program Files\Common Files\GTK\2.0\bin
- Press 3 x OK
Test if Unison works by double clicking Unison-2.27.57 Gtk+.exe in C:\Program Files\Unison
Unison configuration files are stored in C:\Documents and Settings\username\.unison. Initially there should be a configuration file default.prf there. Prepare/Modify a configuration file to fit your needs.
If the Unison version on your Server is different you can use the -addversionno. For this create a batch file e.g. sync.bat in the C:\Program Files\Unison directory:
"C:\Program Files\Unison\Unison-2.27.57 Gtk+.exe" -addversionno
Next create from the batch file a shortcut to the Desktop if you wish.