Crontab rsync does not backup to NAS device
hey guys
I have a WD MyWorldBook Edition II NAS drive that I am attempting to back up a folder (and its contents) with rsync using crontab every hour. crontab: Code:
00 8 * * 1,2,3,4,5 rsync -rth --log-file=/mnt/nas/backups/sync0800/changes.log /folder/ /mnt/nas/backups/sync08000/ when I run the line in a terminal window, it runs perfectly fine, but will not do so in crontab i have looked around on the net, and found i should do this: Code:
chmod 0644 /etc/crontab Code:
crontab /etc/crontab i mapped the nas drive using this: Code:
mount -t cifs //192.168.1.99/Private -o username=****,password=**** /mnt/nas |
'but will not do so in crontab' ?? What are the symptoms/error msgs?
The usual issue is that cron has a minimal env, so you need to refix all progs and files with complete paths eg /usr/bin/rsync instead of just rsync Usually cron will email the crontab owner or root with error msgs if it fails. |
All times are GMT -5. The time now is 10:45 PM. |