from small one page howto to huge articles all in one place

search text in:

Which linux distribution do you use?

poll results

Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs






average rating: 1.5 (74 votes) (1=very good 6=terrible)

May 25th. 2007:




why adblockers are bad

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels






average rating: 1.2 (25 votes) (1=very good 6=terrible)

April, 26th. 2006:

Druckversion . pdf icon
You are here: System->Tips and Tricks

Using Unison to Synchronize Two Directories

A very common question often asked in the Forums and on IRC is how to synchronize directories and files on a host or between different hosts.
Unison is a robust user-level file-synchronization tool that works cross-platform available under the GNU Public License.

To get in touch with the usage of unison we'll create two directories, create some files and sync them with the help of unison.

# mkdir testdir1
# touch testdir1/foo testdir1/bar
# mkdir testdir1/null
# touch testdir1/null/foobar
# mkdir testdir2

Now we want to synchronize testdir1 and testdir2 so that these directorys will contain the same files after unison finishes.

// We will use the textclient in this example:
# unison -ui text testdir1 testdir2
testdir1       testdir2
file     ---->            bar  [f]
file     ---->            foo  [f]
dir      ---->            null  [f]

The output of unison tells us that it successfully copied 2 files (bar and foo) and 1 directory from testdir1 to testdir2.

For tutorials and more information about the usage of unison check the Unison - User Manual and Reference.

rate this article:
current rating: average rating: 1.6 (41 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

Support this site

Please read "Why adblockers are bad".

Other free services
Shorten long
URLs to short
links like
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2013 Sascha Nitsch Unternehmensberatung UG(haftungsbeschränkt)
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 5.8 ms