Cron job of Backup Configuration
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
-
You can configure cPanel Backup cron time here: WebHost Manager "Server Configuration "Configure cPanel Cron Jobs Doing separate backups of just databases at one time and files at another is not possible though. 0 -
so I cannot modify backup configuration automatically ? 0 -
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: /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: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:/scripts/updateuserdomains
Thank you.0
Please sign in to leave a comment.
Comments
3 comments