#1 (permalink)  
Old 11-06-2006, 12:53 PM
Registered User
 
Join Date: May 2005
Posts: 221
zigzam is on a distinguished road
Anyway to limit the complete backup function?

Im currently having issues with users backing up 5 Gb sites during peak hours causing the server load to sky rocket. Or users backing up 20 sites at once causing high load.

Is there a way to limit when the complete backups can be made? or if one is running not have another start until the first finishes.

If there isnt a way, how can I disable that function?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-06-2006, 01:49 PM
Registered User
 
Join Date: Mar 2003
Location: Washington DC
Posts: 598
eth00
Short of a script that chmod 000's the cpbackup file and having the users get an error there is not a way.

You can disable it somehow in WHM, I forget exactly probably tweak settings.
__________________
John W
Security and general linux how-to's
w w w . t o t a l s e r v e r s o l u t i o n s . c o m
Tss -- Live Support! Tweaking, Securing, 24x7 Service Monitoring, Monthly Management, Migrations, Restores, Optimization, Consulting
English And Spanish Support!
We do it all @ TotalServerSolutions
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-24-2006, 07:51 AM
Registered User
 
Join Date: Nov 2004
Posts: 107
panayot is on a distinguished road
I have the same problem. I was thinking to put a cronjob that turns off backup feature in cpanel during the day and restores it at night.

The file to edit with the two cronjobs would be /var/cpanel/features/disabled

Then edit backup=1 <-> backup=0 with cron.

I am not sure if it would not be better to just force them to use ftp to backup files. But I do not know how to disable other backups and leave only database backups.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-25-2006, 12:49 AM
brianoz's Avatar
Registered User
 
Join Date: Mar 2004
Location: Melbourne, Australia
Posts: 984
brianoz is on a distinguished road
Another option might be to simply put some more memory into your server, as it's usually memory starvation that makes the load skyrocket on backups, from personal experience.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-25-2006, 10:10 AM
Registered User
 
Join Date: May 2005
Posts: 221
zigzam is on a distinguished road
It has 2 GB Ram and never goes over 1 GB. It doesn't matter how much ram you have when someone starts five 2 GB backups at once.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-26-2006, 08:12 AM
brianoz's Avatar
Registered User
 
Join Date: Mar 2004
Location: Melbourne, Australia
Posts: 984
brianoz is on a distinguished road
Quote:
Originally Posted by zigzam View Post
It doesn't matter how much ram you have when someone starts five 2 GB backups at once.
Impossible to argue with that Although I think you'll find the memory use gets pretty high with numerous backups running at once.

You might be able to replace cpbackup with a perl script that uses semaphores to prevent more than a certain number running at once, then calls the real cpbackup. That should work well, although you'd have to guard against the script being overwritten. Or another mechanism would be to queue the backup and have another process run backups from the queue one after the other. Still simpler is to do as you've proposed and just turn off backups completely or during certain hours.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:00 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc