I cant get crontab to execute my rsync script....
Hi!
Im using CentOS 5 on my server and im trying to make a crontab job to backup my disk with rsync, but i wont run the script.
the script location is /root/rsync-shell.sh and looks like:
------------
#!/bin/bash
rsync -avru --progress --delete --exclude="/mnt/Backup" --exclude="/sys" --exclude="/dev" --exclude="/proc" / /mnt/Backup
------------
in my /etc/crontab i've put the line:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=
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 22 * * * /root/rsync-shell.sh
When i run the script in terminal it works fine but crontab wont execute it...
Anyone got an idea ?
BR /Jim