Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th December 2011, 10:01
SwOsHiE SwOsHiE is offline
HowtoForge Supporter
 
Join Date: Jun 2011
Location: Stockholm, Sweden
Posts: 82
Thanks: 8
Thanked 8 Times in 7 Posts
Send a message via Skype™ to SwOsHiE
Default Using Unison to sync /var/vmail/

Hello,

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?

Best regards,
Mattias
Reply With Quote
Sponsored Links
  #2  
Old 20th December 2011, 12:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

Should work without problems.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 20th December 2011, 12:57
SwOsHiE SwOsHiE is offline
HowtoForge Supporter
 
Join Date: Jun 2011
Location: Stockholm, Sweden
Posts: 82
Thanks: 8
Thanked 8 Times in 7 Posts
Send a message via Skype™ to SwOsHiE
Default

Just solved it on my own this is how i did it:

I followed this guide for syncing /var/www

http://www.howtoforge.com/setting-up...debian-squeeze

Then I modified the config file for Unison to use /var as a root and sync both /var/www and /var/vmail:

Quote:
# Roots of the synchronization
root = /var
root = ssh://192.168.1.2//var

# Paths to synchronize
#path = current
#path = common
#path = .netscape/bookmarks.html
path = www
path = vmail
Reply With Quote
The Following User Says Thank You to SwOsHiE For This Useful Post:
falko (21st December 2011)
  #4  
Old 20th December 2011, 13:00
SwOsHiE SwOsHiE is offline
HowtoForge Supporter
 
Join Date: Jun 2011
Location: Stockholm, Sweden
Posts: 82
Thanks: 8
Thanked 8 Times in 7 Posts
Send a message via Skype™ to SwOsHiE
Default

Thank you Falko, was to eager to set this up so tried just before you posted
Reply With Quote
  #5  
Old 12th April 2013, 21:32
MaddinXx MaddinXx is offline
Senior Member
 
Join Date: Jul 2011
Location: Switzerland
Posts: 197
Thanks: 25
Thanked 60 Times in 44 Posts
Default

Hi there

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:

Code:
if 1st server goes down and changes take place on 2nd server, will the 1st server update itself to the state of 2nd server?
Thx!
__________________
Rackster Internet Services's presences:
Official | Open Source | Github | Facebook | Twitter
Reply With Quote
  #6  
Old 23rd November 2013, 08:15
dgeho1 dgeho1 is offline
Member
 
Join Date: Aug 2013
Posts: 99
Thanks: 22
Thanked 1 Time in 1 Post
 
Default

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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mailserver error after /var/vmail/ rsync between 2 servers SwOsHiE Server Operation 14 23rd November 2011 13:05
Sync systems via Rsync admins Installation/Configuration 1 6th February 2011 20:37
/var/vmail syncen admins Installation/Configuration 1 22nd July 2010 13:01
Email for hostname goes to /var/mail instead of /var/vmail odx Installation/Configuration 3 4th May 2010 10:53
/var/vmail replicated with glusterfs.How can I avoid the size limit of 950MB??? voltron81 General 1 10th November 2009 16:56


All times are GMT +2. The time now is 03:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.