I entered crontab -r
instead of crontab -e
and all my cron
jobs have been removed.
What is the best way (or is there one) to recover those jobs?
cronlinux
I entered crontab -r
instead of crontab -e
and all my cron
jobs have been removed.
What is the best way (or is there one) to recover those jobs?
Best Answer
crontab -r
removes the only file containing the cron jobs.So if you did not make a backup, your only recovery options are:
/var/log/cron
. The file will help you rewrite the jobs again.grep CRON /var/log/syslog