I was trying to edit crontab in the terminal, and I accidentally typed crontab -r instead of crontab -e. Who would figure such dangerous command would sit right next to the letter to edit the crontab? Moreover, I am still trying to figure out how does crontab -r not ask you for confirmation?
Regardless of my lack of credibility as to how this is possible, my question is: am I able to recover the lost crontab?
etckeeper. – David Foerster Dec 01 '17 at 11:44/etc/, but rather someplace like/var/spool/cron/crontabs/? ;) – marcelm Dec 01 '17 at 13:48/etc/crontabspecifically, though there's no reason (aside of invested effort) to not put/var/spool/cron/crontabsor its children under revision control. – David Foerster Dec 01 '17 at 14:04