Scumbag crontab. At least on two times I messed up https://www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/
Scumbag crontab. At least on two times I messed up https://www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/ 19 comments
@nixCraft This included tagging every line with comments to allow scripts to disable/re-enable different classes of jobs during maintenance windows. Although it describes the image perfectly well, the alt text does not include the grammatical error I am correcting, making my snide comment inaccessible to the blind. So, uh... "crontab -e open cron file for editing" @nixCraft My crontab includes a line where it backs itself up twice a day. I made the -r mistake in the last year. Thank goodness for backups. For important cases, my crontabs live in a file under versin control. Then I just I replace it with 'crontab crontab-for-this'. |
@nixCraft Pro Tip: systemd timers are a treat to use, and I highly recommend using them to retire cron.