Why are there two cron jobs for backups?

David Colter

Active Member
Jun 30, 2016
40
10
8
USA
cPanel Access Level
Root Administrator
[Moderator Note: The following question was moved here as a separate thread]

As an aside, my question about the 2 backup programs is still un-answered. Q: If I use the backup at Home » Backup » Backup Configuration, why is the cron jobs running another? And, how can I stop the cron job? I know how to whittle it down to 1 day per year, but not delete the job.

Any insight?
 
Last edited by a moderator:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
The two crons represent the current and legacy backup systems. If you have legacy backups enabled (i.e., you never migrated off of them) you would use the script as follows:
Code:
/usr/local/cpanel/scripts/cpbackup
When not enabled if tried to run you will receive the following:
Code:
[[email protected] ~]# /usr/local/cpanel/scripts/cpbackup
[cpbackup] Backup Not Enabled (This can be adjusted in WHM => Backup => Legacy Backup Configuration)
You can remove the cron if you'd like to through CLI:
Code:
crontab -e
If you really wanted to only run backups once a year you could modify the cronjob for the current backup system to something like the following:
Code:
0 0 1 1 *