Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 15th June 2007, 12:48
trigar trigar is offline
Junior Member
Join Date: Jun 2006
Posts: 17
Thanks: 2
Thanked 0 Times in 0 Posts

Originally Posted by sjau
try: man rsync and look for the permission/ownership switch. I think it should be: -avpz
Thanks, but the problem is this the "-p" preserves the source permissions (a good thing) but the "-o" and "-g" also preserve the source owner and group (not what I want). What I want is some miraculous switch that inherits parent details from the destination directory!

I suppose the answer is to move all the crontab rsync tasks to a script and add the following lines after each one:

$ /usr/bin/rsync -avpz --delete --exclude-from="/root/rsync/excludes" -e "ssh -i /root/rsync/mirror-rsync-key" syncer@host.domain.net:/var/www/web13/ /var/www/web6/
$ chown -R web6_username /var/www/web6
$ chgrp -R web6 /var/www/web6
Should work, I think, although how I am going to cope with having two sets of users and webs with different names on both servers...
Reply With Quote
Sponsored Links


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
Server Backup mphayesuk Server Operation 10 21st December 2007 13:41
Email - Ueb-Miau mazhar Installation/Configuration 5 21st December 2005 11:01
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 03:30
Server Backup mphayesuk General 1 14th November 2005 17:33
POP3 SMTP FTP problem arsu Installation/Configuration 1 11th November 2005 10:32

All times are GMT +2. The time now is 00:55.

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