Linux Today: Linux News On Internet Time.

LinuxWorld.com: How to sing in unison

Jan 14, 2002, 17:56 (1 Talkback[s])
(Other stories by Nicholas Petreley)
"If you want to do a two-way synchronization with rsync, you'll need to run it twice. It isn't difficult to run rsync twice, and doing it that way allows you to automate different synchronization options for one direction than for the other, which can sometimes come in handy. Nevertheless unison is so much easier for straightforward synchronization tasks that I've switched from rsync to unison when it comes to synchronizing my home directory across machines.

Here's the scoop on how to use unison. It is most powerful when you use it interactively, because this gives you a chance to decide how to resolve conflicts when both the source and destination files have changed. However, you don't have to use it interactively for it to be useful. In my case, I have a personal version of the following shell script in my /etc/cron.daily directory on each of my servers. This script synchronizes the home directory from client to the servers."

Complete Story

Related Stories: