Comments on Setting Up Unison File Synchronization Between Two Servers On Debian Squeeze
Setting Up Unison File Synchronization Between Two Servers On Debian Squeeze This tutorial shows how to set up file synchronization between two Debian Squeeze servers with Unison. Unison is a file-synchronization tool similar to rsync, but the big difference is that it tracks/synchronizes changes in both directions, i.e., files changed on server1 will be replicated to server2 and vice versa.
6 Comment(s)
Comments
this would be cool, but curious if this would work in the ispconfig3 multi server environment.
I will try it.
Wonderful article. Solved my problem precisely. Ideal for a first time user.
i have ran unison flawlessy for some time now however i cannot get crontab to run it
my unison is in opt/bin/ but it rums from anywhere /. /root /.unison etc
so my settings are this (for every 2 minute test):
*/2 * * * * root /opt/bin/unison profilename.prf -silent
iv also tried:
*/2 * * * * root unison profilename.prf -silent
* * * * * root /opt/bin/unison profilename.prf -silent
and like i said can run it flawlessly from any directory and this profile is local to local so i will not have any ssh or permission issues
Nice how to set unison and automatize the bi-direction sync. One can also keep 'batch' and 'silent' to false or commented out, and add '-silent' to the cronjob. This way a manual 'unison server1 server2' will show the changes that request attention, e.g. a human choice.
The confs are a bit uneasy to read with the double line breaks (console + web).
can you provid tutorial for three or more computers with unison?