Troubleshooting custom cron scripts
I often have trouble when creating my own scripts to be run by cron
on Linux servers. On most of the servers that I administer, I use a homegrown backup script (based on these excellent instructions) that I place in /etc/cron.daily. After upgrading a server to Debian Etch recently I found that my backup script, named backup-script.sh
, was no longer working.
After stumbling around in the dark for a while, I found a useful tool to use when trying to troubleshoot cron jobs: