View Single Post
  #3  
Old 20th December 2011, 13: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