(WHM >> Home  >> Server Configuration >> Configure cPanel Cron Jobs)

Overview

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.

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:

  1. Enter the desired intervals for the cron job that you wish to configure. For more information, read the Cron job intervals section below.
  2. Click Commit.

Cron job intervals

Set the following variables to configure each cron job:

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:

SettingValue
Minute15
Hour21
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.

We recommend that you schedule the upcp script to run once per day during off-peak hours.

Command: backup

The backup script runs the backups that you configure in WHM's Backup Configuration interface (WHM >> 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.

 

We recommend that you schedule this cron job to run during off-peak hours. Make certain that the cron job runs early enough to allow your server to finish backups before peak traffic resumes.

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.

We recommend that you schedule this cron job to run during off-peak hours. Make certain that the cron job runs early enough to allow your server to finish backups before peak traffic resumes.

Additional documentation