#1  
Old 9th February 2007, 20:23
smartcall smartcall is offline
Senior Member
 
Join Date: Nov 2006
Posts: 116
Thanks: 10
Thanked 7 Times in 3 Posts
Default Backup

Hi again,

Is there any way to make backups that are invoked from the panel to be performed as root.
I ask because I run suPHP without open_basedir restriction in effect and my users chmod some of their config files to 600. The sites run fine that way but the backup script can't read the chmodded files.
Another workaround would be to run the script as the user that invokes it. But I believe this is more complicated, because the user could be a reseller or one with more webs than one, wanting to backup all of them in one setting.

So the root user is the one to make backups in my case. Is it possible?



Thanks.

Last edited by smartcall; 9th February 2007 at 20:26.
Reply With Quote
Sponsored Links
  #2  
Old 10th February 2007, 19:38
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,469
Thanks: 813
Thanked 5,254 Times in 4,120 Posts
Default

The only nackup functionality that runs as root user in ISPConfig is the automatic nightly backup which can be activated in the config.inc.php file. The backups where stored in a directory named backup inside the website root dir.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 11th February 2007, 15:13
smartcall smartcall is offline
Senior Member
 
Join Date: Nov 2006
Posts: 116
Thanks: 10
Thanked 7 Times in 3 Posts
Default

Thanks!

And will every next backup delete the previous one. Or they will be filling the disk space of the user untill the quota is over.
Reply With Quote
  #4  
Old 12th February 2007, 14:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by smartcall
Or they will be filling the disk space of the user untill the quota is over.
They will fill up the disk space, so you better watch them regularly.
__________________
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
  #5  
Old 12th February 2007, 16:33
smartcall smartcall is offline
Senior Member
 
Join Date: Nov 2006
Posts: 116
Thanks: 10
Thanked 7 Times in 3 Posts
Default

So, I could add a code to your backup script that will delete the backup from the previous day. Or delete the whole folder and then create it again?

Where is the script located?

Thanks.
Reply With Quote
  #6  
Old 13th February 2007, 17:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by smartcall
So, I could add a code to your backup script that will delete the backup from the previous day. Or delete the whole folder and then create it again?
Yes.

Quote:
Originally Posted by smartcall
Where is the script located?

Thanks.
It's in the /root/ispconfig scripts/shell directory.

This link might be interesting for you: http://www.howtoforge.com/forums/sho...r%2Fbin%2Ffind
__________________
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
  #7  
Old 13th February 2007, 18:34
smartcall smartcall is offline
Senior Member
 
Join Date: Nov 2006
Posts: 116
Thanks: 10
Thanked 7 Times in 3 Posts
Default

Thanks!

This is the perfect solution.
Just a couple more questions:
If the user directory becomes over quota, would the site and database function properly?
I understand that the user will not be able to add files, but would the database be still operational?

Regards
Reply With Quote
  #8  
Old 14th February 2007, 11:57
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,469
Thanks: 813
Thanked 5,254 Times in 4,120 Posts
Default

Quote:
If the user directory becomes over quota, would the site and database function properly?
Generally yes, but the umail users wont receive any new mail. But ify you run PHP with SuPHP, it might happen that PHP nis not able to make new sessions anymore, if you rum mod_php which is the default, there should be no such problem.

Quote:
I understand that the user will not be able to add files, but would the database be still operational?
Yes. Because databases are stored under the user and group "mysql".
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 18th February 2007, 11:57
smartcall smartcall is offline
Senior Member
 
Join Date: Nov 2006
Posts: 116
Thanks: 10
Thanked 7 Times in 3 Posts
Default

Thanks for the answers!

I think of another solutioin which is:
  1. Another harddisk mounted on, let's say /backup. Which directory is not in quota path, because my quota is within /var.
  2. Backup script creates separate dirs for each web and stores the backup files in corresponding dirs.
  3. Then makes symlinks to the existing userdirs in /var/www.

Question is: will symlink for a dir outside of quota path count for used space?
Reply With Quote
  #10  
Old 19th February 2007, 14:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

Quote:
Originally Posted by smartcall
Question is: will symlink for a dir outside of quota path count for used space?
I don't think so, but I'm not sure...
__________________
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
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
backup file smartcall General 1 6th February 2007 22:13
Restore ispconfig complete backup statiic General 1 15th January 2007 10:32
Setting up a backup mail server setup with two installations of ISPConfig zitch Tips/Tricks/Mods 7 30th December 2006 10:07
ISPConfig Backup problem gzero General 5 27th November 2006 09:48
Incremental Backup chrno Installation/Configuration 2 17th May 2006 12:10


All times are GMT +2. The time now is 13:44.


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