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!

Backup question

Discussion in 'General Discussion' started by Data 1, Nov 26, 2009.

  1. Data 1

    Data 1 Well-Known Member

    Joined:
    May 25, 2008
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Columbus Ohio
    cPanel Access Level:
    DataCenter Provider
    All my Cpanel servers runs a backup at midnight my time.

    This poses a problem for one dedicated server customer in South Africa. His peak time is 8AM his time, ZA is +7 of EST where the servers are located.

    I can't find where to set what time the backup starts. I would rather not change the server zone time but will if I have to.

    Can backup start time be adjusted?
     
  2. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    458
    Likes Received:
    6
    Trophy Points:
    68
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    In my understanding, you can adjust the time on the by editing the root cron /scripts/cpbackup to achieve what you want. However, I am open to suggestions if there are other ways.

    root@cpanel [/var/spool/cron]# cat root |grep cpbackup
    0 1 * * * /scripts/cpbackup
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 JawadArshad, Nov 26, 2009
    Last edited: Nov 26, 2009
  3. Data 1

    Data 1 Well-Known Member

    Joined:
    May 25, 2008
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Columbus Ohio
    cPanel Access Level:
    DataCenter Provider
    Thank you.

    So for 7PM server time it would be:
    0 19 * * * /scripts/cpbackup

    Do I have to restart any services after changing the file to read the changed schedule?
     
  4. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    458
    Likes Received:
    6
    Trophy Points:
    68
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    Restarting crond service is a good idea at this moment :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Data 1

    Data 1 Well-Known Member

    Joined:
    May 25, 2008
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Columbus Ohio
    cPanel Access Level:
    DataCenter Provider
    service crond restart I imagine-

    Thank you very much for your help :)
     
  6. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,544
    Likes Received:
    9
    Trophy Points:
    268
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    WHM Plugin to Configure cPanel Cron Times

    There is an optional plug-in for WHM that allows editing the scheduled time of the cron tab entries for cPanel updates ("upcp") and for cPanel backups ("cpbackup"); this is available at the following menu path in WHM:

    WHM: Main >> cPanel >> Manage Plugins
    * cronconfig: Allows user to edit cPanel cron settings/program run times

    Related documentation: Manage Plugins

    After the "cronconfig" plug-in is installed, a browser refresh of WHM will reveal the new feature at the following menu path:
    WHM: Main >> Plugins >> Configure cPanel Cron Times
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Data 1

    Data 1 Well-Known Member

    Joined:
    May 25, 2008
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Columbus Ohio
    cPanel Access Level:
    DataCenter Provider
    Thank you cPanelDon, it seemed fundamental so I figured there was a "cpanel" way to do this. The other method did work great of course.
     
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