Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
1. Check the execute (x) bit on the ~/backup.sh script with the command
if there is no execute (x) bit, then set:
2. Check the cron logs
3. Always! I repeat, Always specify the full path to the script being run, i.e.
4. I recommend organizing the output of debugging information and error handling to the log at the script level, and writing the construction in crontab:
to redirect all output and error streams to /dev/null
if you write a construct like this,
then only the output stream will be redirected to /dev/null, if a script execution error occurs, then cron will notify the root user by email (provided that mailing is configured correctly on the server )
Why do you have bash /bin/bash ?
Enough bash ~/backup.sh > /tmp/tmp.cron
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question