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!

What time should backups start?

Discussion in 'General Discussion' started by calande2, Apr 3, 2006.

  1. calande2

    calande2 Well-Known Member

    Joined:
    Jun 28, 2005
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    156
    I found out that WHM is doing backups during daytime instead of after midnight. It was occupying 99% CPU at 9:00am, with a tar process doing backup. My server time is properly set up.

    How can I set backups to start after business hours or after midnight?

    Thanks,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    You need to edit the root crontab (crontab -e) and change the time of the /scripts/cpbackup line.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. calande2

    calande2 Well-Known Member

    Joined:
    Jun 28, 2005
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    156
    I just sent an e-mail to suggest this feature in a future release. Let's see :rolleyes:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    What feature? It's a normal root crontab entry. There's also the Addon feature in WHM if you don't want to take the time to SSH in and do it manually to change the upcp and cpbackup cron times.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Delete the currently weekly on the day you want it to be created next, or better, use the touch command to set the date on the weekly/ directory to the last day of the week that you would have wanted it rotated. It simply uses the date of the weekly/ directory, if if there isn't one, it'll create it whenever it next runs the daily.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. romanus

    romanus Well-Known Member

    Joined:
    Jul 17, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    156
    This is somewhat divergent from the original thread, but how can I change the day on which the weekly back-up is run.
     
    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