The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    6
    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,
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You need to edit the root crontab (crontab -e) and change the time of the /scripts/cpbackup line.
     
  3. calande2

    calande2 Well-Known Member

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

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    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.
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    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.
     
  6. romanus

    romanus Well-Known Member

    Joined:
    Jul 17, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    This is somewhat divergent from the original thread, but how can I change the day on which the weekly back-up is run.
     
Loading...

Share This Page