cPanel & WHM Version 92 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

Schedule custom hours for the cPanel backup function

Feature Importer shared this idea 8 years ago
Completed

As a Server Administrator, I want to be able to schedule custom hours for the cPanel backup function, so that I'm able to execute it during the night in order to avoid slowing sites down during peak hours.


I would like to request this feature:


The possibility to execute backup ONLY in some period for example from 00:00 to 08:00 A.M. like awstats analog and webalizer processes.


I ask this because WHM backup feature it's great but it takes MUCH I/O resources. Execute it during night would be best because it does not slow down any website during day.


This is a feature that has been migrated over from the cPanel Forums. All previous comments and discussions concerning this feature can be located at:

http://forums.cpanel.net/f145/backup-schedule-custom-hours-like-stats-process-194711.html

Best Answer
photo

In cPanel & WHM version 11.42 the backup task has been added to the Cron editor in WHM.


Regarding the other comments, the backup system is already load aware. It will sleep when the load is above a certain, configurable, threshold. The process checks every few seconds to determine whether load has abated. If so it resumes the last task.

Comments (4)

photo
1

I think that backups should have the same feature that statistics have in which you can choose "when it should NOT run" instead of the other way around.

photo
1

It's possible to set the start time of backup in root's crontab, but I suspect this suggestion is about giving the backup process a start window and for it to only start if the load is low enough?


For our own administration tasks, we implement a queue system. Tasks are executed sequentially, but if one task decides that it cannot start when it has the chance, the next in line gets a chance, and so on down the queue. Once a task starts we wait until the next time we look at the queue a minute later, and start selection again. Some won't start if a task with a given name is already running, some tasks won't start if system load is above X, some will run regardless (as they're short running and/or important), and some can run in parallel with themselves (but most don't). Most tasks are also 'load aware' and will sleep if system load exceeds a threshold, continuing when it drops.


It shouldn't be too difficult for cPanel to implement something like this, surely?


What I would like is to be able to put together an 'overnight schedule' of cPanel tasks to be run (sequentially?) as fast as possible from a given start time but for each of the tasks to ensure that system load does not exceed a set threshold. Added to that, I also want a simple method of hooking into this schedule so that we can execute our own tasks as soon as the cPanel schedule has finished.

photo
1

YES we need to have a custom hour to choose from in WHM, Also we need to add the schedule automatic feature for Cpanel users so they can use it instead of cron.

photo
1

In cPanel & WHM version 11.42 the backup task has been added to the Cron editor in WHM.


Regarding the other comments, the backup system is already load aware. It will sleep when the load is above a certain, configurable, threshold. The process checks every few seconds to determine whether load has abated. If so it resumes the last task.

Replies have been locked on this page!