crontab -r is way too close to crontab -e…
Paul Haddad :tapbots_logo:
crontab -r is way too close to crontab -e… 8 comments
Phasorburn (chaos monkey, esq.)
@heliomass @paul that’s avoiding an opportunity to test an unplanned restore from backup
Pavol Salgari 엔키두
@paul been there done that… once I even forgot to include any argument after crontab command on Solaris and it replaced existing crontab with empty one
Johan Halse
@paul I made that exact observation some 20 years ago when I nuked all the cron jobs on our pet email server at school by slipping a tiny amount on the keys
Jean-Pierre Deckers
@paul hence my alias crontab='crontab -i' in my .bashrc , asks for yes/no when accidentally fucking up |
@paul Oh yes. I have a cron row to periodically dump the crontab to a file for exactly this reason. It’s very meta.