dzamanakos

Well-Known Member
Feb 15, 2014
63
4
58
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,
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,219
463
Hello :)

Please review the cron entries for the users in the following directory:

Code:
/var/spool/cron
Thank you.
 

dzamanakos

Well-Known Member
Feb 15, 2014
63
4
58
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.
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
24
143
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,219
463
i've already checked etc... cant find nothing..
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,219
463
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,219
463
I am happy to see the issue has been resolved. Thank you for updating us with the outcome.