[SOLVED] Cronjob script does not run in cron
Hello mateys!
I have a /root/backups.sh script which should be run by a cronjob. What it does is tar many directories, encrypt them with GnuPG and then move the gpg file to a usb stick that was mounted by that very same script.
It works flawlessly if I run the script manually from root. However, it does not seem to be run when I put it in a cronjob although I have an entry in /var/log/cron saying it was run. Also, I don't have any entry in /var/log/messages about the mounting of the usb stick.
I put some debug lines (as in echo "start" > /root/backups.log) and they do not even get executed!
Is there something I should know?
Thanks folks and thank you for building a new and better forum! ;-)
Last edited by godfrank; 30th June 2008 at 12:41 AM.
|