BuycPanel Blog

BuycPanel Blog

Latest news and updates

How to Configure cPanel CRON Jobs

Posted by Allura on 14 08 2019.

Overview
Cron jobs schedule contents to keep running at predefined times or interims on the server. This interface enables you to arrange the upcp, reinforcement, and cpbackup contents’ cron occupations on your server.Warning: Cron jobs run too often can lessen the performance of the server. It’s prescribed to run the cron jobs only once in a day.Configure a cron job
For configuring a cron job, the following steps need to be performed:The desired intervals need to be entered for the cron job which needs to be configured.
Click Commit.Cron job intervals
The following variables can be set to configure a cron job:Minute — Enter the minute of every hour at which to run the cron job. For instance, enter 15 to run the cron job at 15 minutes past the hour.
Hour — Enter the hour of every day (in 24-hour design) at which to run the cron job. For instance,…

Overview

Cron jobs schedule contents to keep running at predefined times or interims on the server. This interface enables you to arrange the upcp, reinforcement, and cpbackup contents’ cron occupations on your server.

Warning: Cron jobs run too often can lessen the performance of the server. It’s prescribed to run the cron jobs only once in a day.

Configure a cron job

For configuring a cron job, the following steps need to be performed:

  1. The desired intervals need to be entered for the cron job which needs to be configured.
  2. Click Commit.

Cron job intervals

The following variables can be set to configure a cron job:

  • Minute — Enter the minute of every hour at which to run the cron job. For instance, enter 15 to run the cron job at 15 minutes past the hour.
  • Hour — Enter the hour of every day (in 24-hour design) at which to run the cron job. For instance, enter 2100 to 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 instance, enter 15 to run the cron job on the fifteenth of the month.
  • Month — Enter the period of the year where to run the cron job. For instance, enter 7 to run the cron job in July.
  • Weekday — Enter the day(s) of the week on which to run the cron job. For instance, an estimation of 0 demonstrates Sunday, or an estimation of 6 shows Saturday.

Note: Enter * to run the cron job at all intervals, for any of the aforementioned settings.

Command: upcp

The upcp content updates cPanel and WHM. Although, the upcp content keeps running at an arbitrary time between 9:00 PM and 6:00 AM nearby time.

Important: It is prescribed to run the upcp script once per day during off-peak hours.

Command: backup

The reinforcement content runs the reinforcements that you arrange in WHM’s Backup Configuration interface (Home >> Backups >> Backup Configuration). Although, this content keeps running at 2:00 AM local time, since this is an off-peak time for most servers. However, if you have debilitated reinforcements in the Backup Configuration interface, the content quickly exits after it runs.

Important: It is prescribed to run this job early enough to allow your server to finish backups before peak traffic resumes.

Command: cpbackup

The cpbackup content runs inheritance reinforcements on your server. Although, this content keeps running at 1:00 AM local time, since this is an off-peak time for most servers. In the event if you have disable the heritage reinforcements, the content promptly exits after it runs.

Important: It is prescribed to run this job early enough to allow your server to finish backups before peak traffic resumes. It is best to run this cron job during off-peak hours.