Hi,
I am trying for a long time now to get cron to execute my .sh backup script. All other cronjobs run, including some PHP CLI scripts I have running but my bash script fails every single time. No error nothing, it just doesn't execute.
I have this line in my crontab (root):
I tried with and without /bin/bash, doesn't make a difference. The backup.log is created but has no content. All the script does is execute rsync commands, when I run it manually it runs fine (which I have to do now since cron doesn't do it).
My /var/log/cron says this:
So it does seem like it's executing it, however it's not executing the contents of the script which contains 4 commands
Any idea?
Thanks!
I am trying for a long time now to get cron to execute my .sh backup script. All other cronjobs run, including some PHP CLI scripts I have running but my bash script fails every single time. No error nothing, it just doesn't execute.
I have this line in my crontab (root):
Code:
0 8 * * * /bin/bash /root/backup.sh > /root/backup.log
My /var/log/cron says this:
Code:
Mar 14 08:00:00 roubaix01 /usr/sbin/cron[54211]: (root) CMD (/bin/bash /root/backup.sh > /root/backup.log)
rsync -av
......etc.Any idea?
Thanks!