Cron jobs schedule scripts to run at predefined times or intervals on the server. This interface allows you to configure the upcp, backup, and cpbackup scripts' cron jobs on your server.
Warning:
Cron jobs that run too frequently can reduce your server's performance. We recommend that you run cron jobs once per day.
Configure a cron job
To configure a cron job, perform the following steps:
- Enter the desired intervals for the cron job that you wish to configure. For more information, read the Cron job intervals section below.
- Click Commit.
Cron job intervals
Set the following variables to configure each cron job:
- Minute — Enter the minute of each hour at which to run the cron job. For example, enter
15to run the cron job at 15 minutes past the hour. - Hour — Enter the hour of each day (in 24-hour format) at which to run the cron job. For example, enter
2100to run the cron job at 9:00 PM local time. - Day — Enter the day of the month on which to run the cron job. For example, enter
15to run the cron job on the 15th of the month. - Month — Enter the month of the year in which to run the cron job. For example, enter
7to run the cron job in July. - Weekday — Enter the day(s) of the week on which to run the cron job. For example, a value of
0indicates Sunday, or a value of6indicates Saturday.
Note:
For any of these settings, enter * to run the cron job at all intervals.
For example, to schedule a process to run every day at 9:15 PM (or 21:15 in 24-hour format), use the following settings:
|
Setting
|
Value
|
|---|---|
| Minute | 15 |
| Hour | 21 |
| Day | * |
| Month | * |
| Weekday | * |
Command: upcp
The upcp script updates cPanel & WHM. By default, the upcp script runs at a random time between 9:00 PM and 6:00 AM local time.
Important:
We recommend that you schedule the upcp script to run once per day during off-peak hours.
Command: backup
backup script runs the backups that you configure in WHM's Backup Configuration interface (Home >> Backups >> Backup Configuration). By default, this script runs at 2:00 AM local time, because this is an off-peak time for most servers. If you have disabled backups in the Backup Configuration interface, the script immediately exits after it runs.
Important
Command: cpbackup
The cpbackup script runs legacy backups on your server. By default, this script runs at 1:00 AM local time, because this is an off-peak time for most servers. If you have disabled legacy backups, the script immediately exits after it runs.
Important
