Associate
Hi all,
I have written a shell script that backs up websites on our dedicated Fedora Core 3 server. I can call it through SSH with "sh /path to/script.sh" and it works great. I have added an entry at the bottom of Crontab thus:
But it doesn't run. I have restarted cron (I think!). Am I missing something from the above? I wondered if I need to put:
Any ideas?
Cheers,
Matt
I have written a shell script that backs up websites on our dedicated Fedora Core 3 server. I can call it through SSH with "sh /path to/script.sh" and it works great. I have added an entry at the bottom of Crontab thus:
Code:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
0 2 * * * root /scripts/websitebackup.sh
But it doesn't run. I have restarted cron (I think!). Am I missing something from the above? I wondered if I need to put:
Code:
0 2 * * * root sh /scripts/websitebackup.sh
Any ideas?
Cheers,
Matt