scottyadam

Member
Oct 29, 2009
11
0
51
So I just migrated all the cpanel accounts from one server to another and there was one account with a cronjob that was pointing to somewhere that didn't exist, so I went into that user's control panel and deleted it.

I went into list the root's cron jobs and no nothing exists.

I know about the crontab -r which I always do crontab -l to avoid this issue.

This is a brand new install of whm and cpanel on a dedicated server from Godaddy. Is there any way other than going into /var/log/cron to get these back? Is there a default cron list that anyone can help me get this back? I'm super puzzled why deleting one non existent cron wiped the whole thing!

I'm tried searching for a default list (as I think there were 8or 9 in there)

Anyone with any ideas?
 

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,977
155
368
SLC
cPanel Access Level
DataCenter Provider
here is the default after a fresh install

0 6 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1
30 5 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1
22 23 * * * /usr/local/cpanel/scripts/upcp --cron
0 1 * * * /usr/local/cpanel/scripts/cpbackup
0 2 * * * /usr/local/cpanel/bin/backup
35 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpanel/bin/tail-check
45 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_mailman_cache && /usr/local/cpanel/scripts/update_mailman_cache
30 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache
30 */2 * * * /usr/local/cpanel/bin/mysqluserstore >/dev/null 2>&1
15 */2 * * * /usr/local/cpanel/bin/dbindex >/dev/null 2>&1
15 */6 * * * /usr/local/cpanel/scripts/autorepair recoverymgmt >/dev/null 2>&1
*/5 * * * * /usr/local/cpanel/scripts/dcpumon-wrapper >/dev/null 2>&1
49 5 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
14,29,44,59 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,216
363
Hello,

Are you sure the root cron jobs were deleted? Do they not exist in the /var/spool/cron/root file?

Thank you.