[clue] [TECH] rsync command runs from command line but not via cron

Collins Richey crichey at gmail.com
Wed Jun 1 18:14:22 MDT 2011


On Wed, Jun 1, 2011 at 12:38 PM, Brian Gibson <bwg1974 at hotmail.com> wrote:
> OK I have a pair of Drobo FS NAS devices.
>
>
> Kernel  :Linux Drobo-FS 2.6.22.18
> BusyBox v1.14.2 (2009-07-29 17:47:47 PDT) multi-call binary
>
> One is the file server, the other is the backup device.  I can manually
> rsync between the two via the command line during a ssh session to the
> backup device.  It works if I call the rsync command directly or via the
> shell script that calls the rsync command.
>
****************'
>
> # ssh uses public/private key authentication
> /mnt/DroboFS/Shares/DroboApps/rsync/rsync -avz -e 'ssh -i /root/rsync-key'
> --rsync-path=/mnt/DroboFS/Shares/DroboApps/rsync/rsync
> root at 0.0.0.0:/mnt/DroboFS/Shares /mnt/DroboFS/

Wow, you've got me stumped. The usual problem in cron scripts is the
lack of environment settings but you've got a fully qualified path to
the executable.

I'll be curious to know the answer.

-- 
Collins Richey
     If you fill your heart with regrets of yesterday and the worries
     of tomorrow, you have no today to be thankful for.


More information about the clue mailing list