relationship between WHM Backup config and crontab -e

jimlongo

Well-Known Member
Mar 20, 2008
289
24
68
Hi, I've setup WHM>Backup>Configure Backups enabled and set to run Weekly on Saturday.

Using the WHM>Plug-in>Configure cPanel Cron I have cpbackup set to
30 5 * * * (same as crontab -e)

Is there a contradiction here, is it going to run every Saturday at 5:30 as I want, or every day at 5:30 as crontab seems to indicate?

Thanks,
jim

Additionally does this respect the local cpbackup-exclude.conf directives or do I need to put that in /etc/cpbackup-exclude.conf ?
 
Last edited:

quietFinn

Well-Known Member
Feb 4, 2006
2,042
552
493
Finland
cPanel Access Level
Root Administrator
Hi, I've setup WHM>Backup>Configure Backups enabled and set to run Weekly on Saturday.

Using the WHM>Plug-in>Configure cPanel Cron I have cpbackup set to
30 5 * * * (same as crontab -e)

Is there a contradiction here, is it going to run every Saturday at 5:30 as I want, or every day at 5:30 as crontab seems to indicate?
The crontab job runs every day at 5:30, and starts cPanel backup. Then cPanel backup reads it's config file, and if it's not Saturday it exits without doing anything.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Additionally does this respect the local cpbackup-exclude.conf directives or do I need to put that in /etc/cpbackup-exclude.conf ?
Yes, the "cpbackup" script that you configured via Web Host Manager respects the account's cpbackup-exclude.conf file:

Code:
/home/user/cpbackup-exclude.conf
This file is documented at:

Excluding Files From Backup

Thank you.