cron jobs of account disappeared

user4629

Active Member
May 25, 2015
26
1
53
Thessaloniki
cPanel Access Level
Root Administrator
Hello,

suddently in one account of my server that is a resseler until some hours ago it had dozens of cron jobs. Now it has none.
I downloaded a backup and found a file that state all the cron jobs as:

SHELL="/bin/bash"
MAILTO="[email protected]"
0 0 * * * cd /home/xxx/public_html/xxxxx.eu && /usr/local/bin/php /home/xxxx/public_html/xxxx.eu/wp-cron.php
3 0,12 * * * wget --quiet --delete-after "https://xxxxx.php"
4 0,12 * * * wget --quiet --delete-after "https://xxxxxx.php"
5 0,12 * * * wget --quiet --delete-after "https://xxxxxx.php"
6 0,12 * * * wget --quiet --delete-after "https://xxxxxx.php"

etc...

how do I restore it in the account?
 
Last edited by a moderator:

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
562
259
138
IN
cPanel Access Level
Root Administrator
The user cron job file is stored at /var/spool/cron/USERNAME

Check if the cronjob file of the concerned user exits with the required entries or it is empty, If you have the backup of the cron job file you can try restoring it at /var/spool/cron/USERNAME

Note: Replace USERNAME with your cP user account name.
 
  • Like
Reactions: cPRex