Pedro Fortuny wrote:

> I am running OS X Snow Leopard on the 'sender' side and
> Linux (2.6.32, possibly fedora but unsure) on the 'receiver'
> side. Both with rsync 3.0.9.
> 
> If I run the following command from the command line:
> 
>  /usr/local/bin/rsync -av -e "ssh -i \
>      /Users/pedrofortunyayuso/.ssh/backup_pfortuny_net" \
>      --filter ': rsync.dirs' ~/ [email protected]:"~/backup_mbpro/"
> 
> Everything works OK. However, if I run it as a cron task, I
> receive the following mail:
> 
> [headers stripped]
> X-Cron-Env: <SHELL=/bin/bash>
> X-Cron-Env: <PATH=/usr/bin:/bin>
> X-Cron-Env: <LOGNAME=pedrofortunyayuso>
> X-Cron-Env: <USER=pedrofortunyayuso>
> X-Cron-Env: <HOME=/Users/pedrofortunyayuso>
> Message-Id: <[email protected]>
> Date: Fri, 28 Oct 2011 15:34:01 +0200 (CEST)
> Status: RO
> 
> cp: ./Dropbox/HostMonsterPage/doc/ampliacion.pdf: No such file or directory
> cp: ./Dropbox/HostMonsterPage/doc/metodos.pdf: No such file or directory

The shell and the environment under cron may be different.
Did you try avoiding the "~" syntax?

Bye,
Berny
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to