Rsync problems when run as a cron job

Alf-Ivar Holm alfh at student.matnat.uio.no
Tue Sep 12 15:55:34 UTC 2006


Gabriel M Dragffy <dragffy at yandex.ru> writes:

> I have the entry for root's crontab:
>
> $ sudo crontab -l | grep rsync
> Password:
> 00 08,15,20,00 * * * /usr/bin/rsync -rlvt
> --delete /home /media/LACIE/Backup
>
> This is a single example from syslog:
> Aug 30 08:00:02 worldventuresltd /USR/SBIN/CRON[14748]: (root) CMD
> (/usr/bin/rsync -rlvt --delete /home /media/LACIE/Backup)
>
> Which shows the command got executed. However I am now certain that it
> doesn't work, the data isn't transferred as it should. If I copy the
> command exacatly from crontab (/usr/bin/rsync -rlvt
> --delete /home /media/LACIE/Backup) and paste it into a terminal it does
> it's job properly and very well.

Apart from doing Tony Arnold's help, when you run the command in the
terminal do you use sudo as well?  The crontab is run as root, so you
have to use sudo to mimic the crontab behaviour.  Might be an issue if
you are using NFS.

	Affi




More information about the ubuntu-users mailing list