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.

cron doesn't backup one listing

Discussion in 'General Discussion' started by modom, Apr 24, 2009.

  1. modom

    modom Well-Known Member

    Joined:
    May 18, 2002
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Arkansas
    Hi,

    I have just moved from plesk to cpanel and am having a problem getting a cron listing to run.

    This is my cron file now.
    0 12 * * * /root/dbBackups/dbBackups.sh
    14 0 * * * /scripts/upcp
    0 1 * * * /scripts/cpbackup
    35 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpanel/bin/tail-check
    0,15,30,45 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
    */5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1
    2,58 * * * * /usr/local/bandmin/bandmin
    0 0 * * * /usr/local/bandmin/ipaddrmap
    32 23 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
    51 2 * * * /usr/bin/freshclam --quiet --no-warnings
    0 6 * * * /scripts/exim_tidydb > /dev/null 2>&1

    They all run except for this one which is the one I setup to dump all the different mysql databases into separate account folders on cpanel.

    0 12 * * * /root/dbBackups/dbBackups.sh

    I have tried every 30 minutes since about 8:30 this morning and this particular cron never runs. If I run it manually it works perfectly.

    I have tried moving the folder to /usr/local/ and still it does not work.

    Can someone please help me with this as it has been working on the plesk server?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Is the script never being run, or is it just the task the script is supposed to be performing just not completing?
     
  3. modom

    modom Well-Known Member

    Joined:
    May 18, 2002
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Arkansas
    Hi,

    The script never runs (that one line in the crontab).

    I changed the permissions on the crontab to 4755 also and still it doesn't work.

    Hang on ... now that I said that I just looked and something is working so let me check further.
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Looking closer at that cron job, it seems it is:

    Code:
    0 12 * * * /root/dbBackups/dbBackups.sh
    This means it should run once per day at 12:00 noon, not every 30 minutes.

    If you are sure this cronjob is not running, please let our technical analysts take a look at your server so they can investigate this further: http://tickets.cPanel.net/submit
     
  5. modom

    modom Well-Known Member

    Joined:
    May 18, 2002
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Arkansas
    It is working now!

    Always right after you post! :D:p
     
Loading...

Share This Page