Unison

From IThelp
Revision as of 13:33, 9 March 2017 by Botit (talk | contribs) (Removing categories that have no meaning.)

Template:Utvikling

Unison is a two-way synchronization tool. It is easy to use, has a graphical user interfaces, are quick (Unison uses # Algorithm rsync algorithm which transmits only part of the file that has been modified) and an efficient and easily understandable conflict management. From 05.03.2013 the Unison software is installed on all Linux clients, and there are also compiled versions for both Mac and Windows.

Setting up Unison GTK in Ubuntu

Open Unison by clicking on the Dash home and type unison in the search area. If you would like to open Unison from the terminal, just type "unison-gtk"

Before you can start the synchronization, you must create a new profile. In the Profile Selection click Add - it will open Unison Profile Creation Assistant. Select Forward


In Profile name type what you would name your profile, for example. UiB. Description is optional. Click Forward.


In the window Connection Setup choose Using SSH. In Configuration write sync.uib.no and your UiB username. Uncheck Enable compression


In the Directory Selection select which two directories you want to sync. A good starting point might be to synchronize the folders Documents local and remote. It is not recommended to sync your entire home directory, due to the configuration files (dot files) and temporal data. Remote directory is relative to your home directory, so that the Documents becomes $HOME/Documents


When the profile is set up, select the profile from the list in the Profile Selection and click Open


500px-Unison screenshot.png

The first time you open your profile you will be asked to authenticate, and then use your normal UiB password. Unison is SSH-based so by setting up key authentication it is not required to entering the password more than once.

The first synchronization may take some time depending on how large amount of data; Unison now detects timestamp of last modification, permissions, ownership and i-node number for each file in both local and remote, and stores this in an archive.


The picture on the left shows how a typical Unison synchronization may appear. At the top you will see a file with the same name, local and remote, but have different content. Unison requires that you determine how to resolve the conflict, click on the Right to Left overwrites the file remote file locally, click the Left to Right, the opposite happens. Merge will merge the files, and click' Diff shows the differences between them (this only works with plain text files).

If you would like to not synchronize specific files you just click on them and select Skip

When you are ready to start the synchronization, click Go. If the file list disappears and the status at the bottom says Everything is up to date is all as it should be.

Configure Unison in OS X

Coming soon