pietro2580
August 28th, 2008, 10:06 AM
Dear all,
I am trying to set up a backup system for my Ubuntu linux (8.04) laptop with a desktop linux machine (openSuse 9.x) using a combination of rsync, cron and ssh.
The folowwing rsync command is working ok when I run it in a terminal (as normal user):
rsync -avz -e "ssh -i /home/userid/sync/PCxxxx-rsync-key" /home/userid/wanteddir/ userid@pcyyyy:/home/userid/backup/wanteddir/
When I put this command in my crontab file (running crontab -e), the rsync command fails.
46 10 * * * rsync -avz -e "ssh -i /home/userid/sync/PCxxxx-rsync-key" /home/userid/wanteddir/ userid@pcyyyy:/home/userid/backup/wanteddir/
However, the cron-log-file tells me that the job is excuted:
Aug 28 10:18:01 PCxxxx /USR/SBIN/CRON[19650]: (userid) CMD (rsync -avz -e "ssh -i /home/userid/sync/PCxxxx-rsync-key" /home/userid/wanteddir/ userid@pcyyyy:/home/userid/backup/wanteddir/)
If there would be an error-message resulting from this cron-job, where can I find it? Apparently not in the file /var/log/cron.log? Also in /var/log/messages I cannot find any entry related with my cronjob
Thanx in advance
P.
I am trying to set up a backup system for my Ubuntu linux (8.04) laptop with a desktop linux machine (openSuse 9.x) using a combination of rsync, cron and ssh.
The folowwing rsync command is working ok when I run it in a terminal (as normal user):
rsync -avz -e "ssh -i /home/userid/sync/PCxxxx-rsync-key" /home/userid/wanteddir/ userid@pcyyyy:/home/userid/backup/wanteddir/
When I put this command in my crontab file (running crontab -e), the rsync command fails.
46 10 * * * rsync -avz -e "ssh -i /home/userid/sync/PCxxxx-rsync-key" /home/userid/wanteddir/ userid@pcyyyy:/home/userid/backup/wanteddir/
However, the cron-log-file tells me that the job is excuted:
Aug 28 10:18:01 PCxxxx /USR/SBIN/CRON[19650]: (userid) CMD (rsync -avz -e "ssh -i /home/userid/sync/PCxxxx-rsync-key" /home/userid/wanteddir/ userid@pcyyyy:/home/userid/backup/wanteddir/)
If there would be an error-message resulting from this cron-job, where can I find it? Apparently not in the file /var/log/cron.log? Also in /var/log/messages I cannot find any entry related with my cronjob
Thanx in advance
P.