How to resolve accidentally resetted or deleted cron jobs in cpanel or linux servers

accidentally-resetted-cron jobs-cpanel

I know, it is hard to keep/put your fingers correctly on the keyboards letters.

Many type “i” instead of “o”, “r” instead of “e”, After all we are humans and make mistakes 🙂

In cpanel installed servers, there are many crons running to do the automated process,
Like upgrading the cpanel, bandwidth usage, account backups & etc..

beyond this crons/scheduled jobs, some time we want to add more or edit the time when the jobs need to run.

For this you use any text editor like, vi or nano or pico

eg.

another easier way to do it is by typeing.

What, if you have typed crontab -r

it removes, resets all the cron jobs stored in /var/spool/cron/root file.

All the automated jobs will stop working.

How to resolve accidentally resetted or deleted cron jobs in cpanel or linux servers

No worries, this can resolved easily.

if you have other cpanel installed servers,
just cat /var/spool/cron/root and get all the contents and save it to the problem server and save it.

or, just copy the below cron jobs

 

Thats all, leave your feed back.

if it helped you, share this with your friends and colleges
For Other cpanel related post click here

About ilangovan ramasamy

I am a IT manager on a Corporate co. Started My Career In a Internet Center. having 10 years on Experience on IT. Very much Interested in knowing New technologies & gadgets. Wrote many Articles & how to’s for Computer Related issues. As I am in to hosting industry We face many issues on work. I thought of sharing my knowledge with you and writing so. If you guys feel something is interesting & helpful, Please do comment on it.

View all posts by ilangovan ramasamy →

Comments