Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Cron job of Backup Configuration

Discussion in 'Data Protection' started by Abdelmks, Mar 16, 2017.

  1. Abdelmks

    Abdelmks Active Member

    Joined:
    Aug 4, 2016
    Messages:
    30
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    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
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,467
    Likes Received:
    420
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Abdelmks

    Abdelmks Active Member

    Joined:
    Aug 4, 2016
    Messages:
    30
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Morocco
    cPanel Access Level:
    Root Administrator
    so I cannot modify backup configuration automatically ?
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice