Cron job of Backup Configuration

Abdelmks

Active Member
Aug 4, 2016
30
2
8
Morocco
cPanel Access Level
Root Administrator
Hello,
I want to know if I can configure a cron job of editing backup configuration
for example I will configure backup weekly for all my databases of all users, and after that change this configuration to do backups of all users (with data) monthly.
so this change of configuration backup will done automatically with my cron job.
is this possible ?
Thank you
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello @Abdelmks,

If I understand correctly, you'd like to manually modify the backup configuration files via a cron job in order to use different backup configuration values at different times of the month/day. The configuration file for local backups is located at:

Code:
/var/cpanel/backups/config
Ensure to remove the config.cache file after making changes to this file. Regarding backup user selection, this is stored in the cPanel user file for each user. EX:

Code:
grep BACKUP /var/cpanel/users/example
BACKUP=1
"1" is enabled, and "0" is disabled. Run the following command after making changes to these files:

Code:
/scripts/updateuserdomains
Thank you.