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.

cant find a cron job

Discussion in 'General Discussion' started by dzamanakos, Dec 5, 2014.

  1. dzamanakos

    dzamanakos Active Member

    Joined:
    Feb 15, 2014
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi, i have a problem with one cron job that i would like to delete.
    I cant remember which file i edited to enabled it and i cant find it to disable it.
    The file is a shell script that backups the databases in .sql format in a folder. I know it's running, as every day the folder contains the new backups.
    I 've checked the crontab -e and there is no reference for my script.
    Also when i run a grep -R "myscript.sh" /etc/* i dont have any results.
    Is there anywhere i can look?
    I'm using centos 6.6.
    thank you in advance,
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. dzamanakos

    dzamanakos Active Member

    Joined:
    Feb 15, 2014
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Checked there too, forgot to mention it above..
    The script runs as root as it uses mysqldump to export all databases each one to its own sql file.
     
  4. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If you cannot find the job in /var/spool/cron/root, then look in each of the following directories:

    /etc/cron.d
    /etc/cron.daily
    /etc/cron.hourly
    /etc/cron.monthly
    /etc/cron.weekly
     
  5. dzamanakos

    dzamanakos Active Member

    Joined:
    Feb 15, 2014
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    i've already checked etc... cant find nothing..
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  7. dzamanakos

    dzamanakos Active Member

    Joined:
    Feb 15, 2014
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi, submited it with id : 5856597
    Thank you.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Is it possible you have this script added to the /scripts/postcpbackup file or is it added as a hook (E.g. /usr/local/cpanel/bin/manage_hooks list)?

    Thank you.
     
  9. dzamanakos

    dzamanakos Active Member

    Joined:
    Feb 15, 2014
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi, thank you for your help, it was in /scripts/postcpbackup
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page