ich: rsync & cron: script läuft manuel, aber nicht per cron

Beitrag lesen

Tach.

Ich habe unter SuSE Linux 10.0 ein Shellscript geschrieben, welches ein rsync ausführt. Das funktioniert, wenn der user "rsync" es selber an der Komandozeile (ssh-Verbindung und keine lokale Konsole) aufruft. Wird das Script aber über einen cron-job gestartet, steht in der eMail dazu:

rsync  version 2.6.6  protocol version 29
...
<die ganzen Optionen und dergleichen>
...
Use "rsync --daemon --help" to see the daemon-mode command-line options.
Please see the rsync(1) and rsyncd.conf(5) man pages for full documentation.
See http://rsync.samba.org/ for updates, bug reports, and answers
rsync error: syntax or usage error (code 1) at main.c(909)

Frage: Warum läuft rsync per Shell, aber nicht über cron?
Das Script wird in beiden fällen als User "rsync" ausgeführt

Crontab von "rsync":
...
3       1       *       *       *       rsync   /home/rsync/bin/rsync.sh

und rsync aufruf in rsync.sh:
/usr/bin/rsync --verbose --recursive --relative --copy-links --delete --update --compress --exclude=... rsync@<HOST>:/home/... /home/rsync/...