Using Unison to sync /var/vmail/
I've successfully installed Unison to sync /var/www/ and now I want to sync /var/vmail. But before I do this, I want to know if there is some common problems using this method? Has anyone done this before? Is there something to think of when doing this?
Should work without problems. :)
Just solved it on my own :) this is how i did it:
I followed this guide for syncing /var/www
Then I modified the config file for Unison to use /var as a root and sync both /var/www and /var/vmail:
Thank you Falko, was to eager to set this up so tried just before you posted :p
Thanks from me as well for the unison tutorial - it's great!
One question: Is it enough to have the cron running on one server only?
E.g. will it behave like:
I am relatively new to unison, but as I understand it (plz correct me if I'm wrong)
if prefer=newer is set in whichever .prf file the cron on the main server
when the main server comes back up and runs the cron, that the newer files that have been updated on the slave while the main was down should be copied back up to the master.
Hope this helps
I'll do a test and let you know if it turns out different.
|All times are GMT +2. The time now is 18:28.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.