Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Secret Agent
    Guest

    Default two strange issues

    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. #2
    Secret Agent
    Guest

    Default

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

  3. #3
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    That's because the backup script is written to only run once/day.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  4. #4
    Secret Agent
    Guest

    Default

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

  5. #5
    Member Murtaza_t's Avatar
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    471

    Default

    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)

  6. #6
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    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.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

Similar Threads & Tags
Similar threads

  1. strange email issues
    By vajjas1 in forum E-mail Discussions
    Replies: 0
    Last Post: 03-20-2008, 07:57 PM
  2. If you have strange email issues...
    By dreamwiz in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-12-2007, 08:06 AM
  3. Strange file issues
    By HH-Steven in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-23-2006, 06:35 AM
  4. Strange Issues with upgrade
    By WebIdentity in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-02-2005, 10:47 AM
  5. Strange DNS Issues
    By robcyb in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-12-2004, 07:04 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube