Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th January 2012, 17:06
Rescue9 Rescue9 is offline
Member
 
Join Date: Jun 2007
Posts: 52
Thanks: 4
Thanked 3 Times in 2 Posts
Default Permission Question: Mirror with rsync & ISPConfig 3

I've been following the Mirror Your Web Site With rsync tutorial in an effort to backup my clients sites to another server. Because I use a VPS with relatively small disk space, I don't have the room to run a .tgz backup script like I want.

In step 2 it states that "(of course, someuser must have read permissions on /var/www on server1.example.com)." To solve this, I added 'someuser' the each clients' group (client1, client2, etc.) which solved some of the problem.

However, using ISPConfig 3.0.4.1 (my current version), the ../client/client#/web#/web folder is set to 710. As such, the group doesn't have read permission to the folder, thus backing up the ./web directory doesn't work. You guys have always stated that manually changing permissions to individual folders managed by ISPConfig is a bad thing. So, what is your recommendation to allow 'someuser' to read the ./web directory in order to rsync this info to another box?
Reply With Quote
Sponsored Links
  #2  
Old 19th January 2012, 15:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Use the root account for rsync.
__________________
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 19th January 2012, 15:47
Rescue9 Rescue9 is offline
Member
 
Join Date: Jun 2007
Posts: 52
Thanks: 4
Thanked 3 Times in 2 Posts
Default

So you're saying to change the cron job on the mirror from this line
Code:
rsync -avz --delete --exclude=**/stats --exclude=**/error --exclude=**/files/pictures -e "ssh -i /root/rsync/mirror-rsync-key" someuser@server1.example.com:/var/www/ /var/www/
to this line?
Code:
rsync -avz --delete --exclude=**/stats --exclude=**/error --exclude=**/files/pictures -e "ssh -i /root/rsync/mirror-rsync-key" root@server1.example.com:/var/www/ /var/www/

EDIT: I mulled over what you said, then went back and re-read the HOWTO again. If I'm reading you correctly, I'm to redo the article substituting root anywhere I see 'someuser'. Is this what you're saying?

Last edited by Rescue9; 20th January 2012 at 06:12.
Reply With Quote
  #4  
Old 21st January 2012, 11:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

Quote:
Originally Posted by Rescue9 View Post
EDIT: I mulled over what you said, then went back and re-read the HOWTO again. If I'm reading you correctly, I'm to redo the article substituting root anywhere I see 'someuser'. Is this what you're saying?
Yes, but you don't have to create the root account on the remote server, of course.
__________________
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
The Following User Says Thank You to falko For This Useful Post:
Rescue9 (22nd January 2012)
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
SugarCRM Install on ISPConfig3 w/ SuPHP clucena Installation/Configuration 1 9th February 2010 09:29
Ftp problems timeout reny2000 General 6 23rd December 2009 11:09
Quick question: Updater script for ISPconfig 3 bl4ckb1rd Installation/Configuration 1 20th February 2009 08:30
backup failure.... gilas Installation/Configuration 19 30th October 2007 12:08
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17


All times are GMT +2. The time now is 20:30.


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