Re:Man accidentally 'deletes his entire company' with one li...
by laumars on Thursday April 14, 2016 @12:39PM
(#11498186)
I've managed that one as well. One month into a new job and working on servers with complex applications installed that I wasn't yet familiar with. Thankfully I had `crontab -l` just beforehand, otherwise I'd have been screwed.
[ Parent
| on HN ]
Re:Man accidentally 'deletes his entire company' with one li...
by hrktb on Thursday April 14, 2016 @12:59PM
(#11498400)
Most admins have a text file somewhere with the contents of the crontab. Specially because these things happen more often than it should.
Re:Man accidentally 'deletes his entire company' with one li...
by laumars on Thursday April 14, 2016 @03:00PM
(#11499452)
Indeed. I do generally keep backups of crontabs, not just in case of this kind of scenario but also in case the platform blows up in any unexpected ways. Sadly the company in question didn't. However I have since made it a personal policy to always -l before editing so I have a "backup" in my tmux scroll back (that time I mentioned before, it was pure chance that I had -l)