View Single Post
  #9  
Old 14th June 2007, 18:32
trigar trigar is offline
Junior Member
 
Join Date: Jun 2006
Posts: 17
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by trigar
I'm coming to the conclusion that the best arrangement is going to be to set up webs on server B for www2.example.com, www2.another.com, etc, then individually rsync the content from server A for www.example.com. www.another.com, etc.
Seems to all work fine, except that of course the owner and group are not appropriate for the destination. I.e. source web is web13, destination is say web4 (ideally these would be in sync, but there does not seem to be anywhere in ISPConfig to set the web_ID). So I believe the only solution is to change group and owner after rsync has completed?

The rsync command looks like this:

Code:
/usr/bin/rsync -avz --delete --exclude-from="/root/rsync/excludes" -e "ssh -i /root/rsync/mirror-rsync-key" syncer@hostname.domain.net:/var/www/web13/ /var/www/web4/
I knew this idea wasn't elegant, but it's starting to look positively ugly... Any thoughts?

Thanks.
Reply With Quote