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!

cpbackup - server time - cron time

Discussion in 'Data Protection' started by kamm, Mar 7, 2008.

  1. kamm

    kamm Active Member

    Joined:
    Jan 17, 2004
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Hi Folks,

    From WHM > Server Time I've set my server time to Europe/Madrid (Time zone is known as CET)

    In my cron I've got this line:
    0 1 * * * /scripts/cpbackup

    Every morning just after 7:00 CET I get an email notification - [cpbackup] Backup complete...

    The email starts:
    [cpbackup] Started at Fri Mar 7 07:00:01 2008

    This seems to imply the script isn't starting at 01:00 as per the cron, but at 07:00?

    Any ideas why that should be?

    kamm...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. kamm

    kamm Active Member

    Joined:
    Jan 17, 2004
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Looks like the solution to this is:

    In shell,
    /etc/init.d/crond restart

    Which brings cron into to sync with server time
     
    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