A PHP script to recover a destroyed crontab under Ubuntu 12.04 +
I ran this on MAC OSX 10.7 under MAMP
For this to work, you must follow the following steps:
- Run "zgrep -i cron /var/log/syslog*" - This will output a log of your crontab from the last week to the terminal
- Copy that output into a text file on your local machine
- Name that textfile 'crontab_log'
- Change 'USER' to the user for who's cron commands you are trying to recover
- Run the script in a browser