Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    May 2005
    Posts
    235

    Default 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?

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2003
    Location
    NC
    Posts
    725
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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.

  3. #3
    Member
    Join Date
    Nov 2004
    Posts
    121

    Default

    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.

  4. #4
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,093
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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.

  5. #5
    Member
    Join Date
    May 2005
    Posts
    235

    Default

    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.

  6. #6
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,093
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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.

Similar Threads & Tags
Similar threads

  1. Place limit on password protect directories function for cPanel
    By dibarra in forum Archived Feature Requests
    Replies: 1
    Last Post: 01-11-2011, 05:23 PM
  2. PHP Mail Function and time per hours limit
    By dotcom22 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-05-2010, 07:55 PM
  3. does cpanle trial copy has function limit
    By charliesxia in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-03-2009, 10:10 AM
  4. Backup Datestamp display in WHM backup function?
    By Snowman30 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-10-2009, 06:04 AM
  5. Complete Backup method ?
    By SecondSight in forum Data Protection
    Replies: 13
    Last Post: 09-22-2004, 01:31 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube