How to Specify the exact time to run a backup on cPanel server?

How to Specify the exact time (hour) to run a backup on cPanel server?

Solution :-

By default, backup script runs at 1:00AM on the server but you can also set your own custom time to finish backups before peak traffic resumes.

There are two ways to change exact time (hour) to run a backup on cPanel server -
1) Using command line.
2) Through WHM.

1) Using command line -

To change backup time of the server, you will need to do SSH. Once done then fire below command on the server :-
crontab -l -u root

Above command will show you all cronjobs setup for root user ont the server.


To edit cronjobs for root user, you will need to fire below command
crontab -e -u root

Search for below two line and set your custom time -

0 1 * * * /usr/local/cpanel/scripts/cpbackup
0 2 * * * /usr/local/cpanel/bin/backup

In above example, cpbackup script will run at 1:00AM and backup script will run at 2:00AM.

2) Using WHM -
If you are not comfortable with option #1 then you can change time to run backup using graphical interface too.

To do so, you will need to login to WHM > Click on Configure cPanel Cron Jobs and change minute, hour, day, month and weekday as per your requirement.

That's it!
  • 6 Users Found This Useful
Was this answer helpful?

Related Articles

Fatal error: Call to undefined function utf8_substr()

While accessing Opencart site, I was getting error as 'Fatal error: Call to undefined function...

Error:The system experienced the following error when it attempted to install the “OWASP ModSecurity Core Rule Set V3.0”

Issue while installing Comodo's WAF rules in cPanel - Error:The system experienced the following...

PHP extension soap must be loaded - Magento Issue

While installing the Magento on cPanel server, I got the error as 'PHP extension “soap” must be...

How to install composer on cPanel server- Locally - inside the user's directory?

Composer is as tool which is used to manage the dependencies between the PHP softwares and...

PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/username/public_html/db_connection.php:11

The error you're encountering happens because the `mysql_connect()` function is no longer...

Powered by WHMCompleteSolution