11
3
Instead of typing "crontab -e" I accidentally typed "crontab" and was stuck in the middle of a process so I aborted the process. Now when I go to crontab -e it's entirely blank. This isn't good at all. If I can't get it back I will need to rewrite it.
Is there any way to:
- get my crontab jobs back? are they in memory somewhere? Where are the account specific crontab files located in linux? OR
- get a log of all things that cron has done, so I can reverse engineer my crontab file. I hadn't looked at it in a long time?
3Just restore it from your most recent system backup. – David Heffernan – 2012-01-30T21:04:05.460
If you typed crontab -r like I did and found this thread, you can recover the command reading the logs from /var/log. In my case syslog.1 had everything that I needed – StackUnder – 2013-07-25T13:40:16.673