Hi,
I have written a simple backup script which runs fine through the console (with su), but when I try to set it up as a cron job, it doesnt run.
the backup script is as follows
Code:
rsync -a --delete /home/gavinjb/ /mnt/IntBackup/Gavin/
rsync -a --delete /srv/www/ /mnt/IntBackup/www
and the crontab is as follows
Code:
20 * * * * root /home/gavinjb/Documents/scripts/backup.sh
I am trying to get the job to run every hour, can anyone see what I have done wrong.
the cron job is created under su and not standard user.
Thanks,
Gavin,