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!

two strange issues

Discussion in 'General Discussion' started by Secret Agent, Dec 18, 2005.

  1. Secret Agent

    Secret Agent Guest

    Issue #1

    I have cpanel on my centos box. By default cpanel has a cron at 1am. I added a 2nd one to make it run twice a day.

    0 1 * * * /scripts/cpbackup
    0 12 * * * /scripts/cpbackup

    Problem is the 2nd one just wont' run at all. I restarted cron many times. Can't understand why it won't run.

    Issue #2

    As many times as I have restarted syslog, /var/log/messages remains empty always.
    messages1 also empty but messages2 updated today. Strange part even messages shows updated today yet 0 bytes. Permissions on all of these are read/write

    Any help appreciated.

    Centos 4.2
    Cpanel CURRENT 10.8
     
  2. Secret Agent

    Secret Agent Guest

    I was able to duplicate this on a like second server also
     
  3. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    That's because the backup script is written to only run once/day.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Secret Agent

    Secret Agent Guest

    The backup script used to work twice a day before I had an OS reload.
     
  5. Murtaza_t

    Murtaza_t Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    476
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Earth
    cPanel Access Level:
    Website Owner
    Try setting the cron as below however I am not sure will you be able to run twice a day

    0 */12 * * * /scripts/cpbackup
    (dont forget to remove the other one)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    That should do it. What the script does is check to see if the current backup is more than .5 days old. If not, it won't 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