News for hackers. Stuff that matters.
Re:Cron checker by mooneater on Saturday July 16, 2016 @11:16PM (#12108881)
first thing when logging into new server: place /etc under git. then loss of cron files (or any config file) is easily recovered from.
Re:Cron checker by pferde on Sunday July 17, 2016 @03:47AM (#12109397)
Except that crontabs are usually somewhere in /var. :)
Re:Cron checker by mooneater on Sunday July 17, 2016 @10:53PM (#12113010)
Which is why I only use system-wide crontabs, in /etc/cron.d

Instead of per-user crontabs. Much easier to manage.

With cron.d you can specify what user each cron entry should run as, so it is equivalent.

Re:Cron checker by Drdrdrq on Sunday July 17, 2016 @01:37AM (#12109141)
This is a brilliant idea - thank you!
Re:Cron checker by mooneater on Sunday July 17, 2016 @10:55PM (#12113015)
I cannot count the number of times this has helped or saved me. You can keep the /etc git repo local. Or if its a critical server, push to github private repo. Seeing a history of your /etc edits is a very reassuring feeling.