[clue] [TECH] rsync command runs from command line but not via cron
Brian Gibson
bwg1974 at yahoo.com
Thu Jun 2 09:16:12 MDT 2011
It looks like specifying the full path to ssh did it. Duh. I'm just surprised
it silently failed since output was being redirected to a file.
----- Original Message ----
From: David L. Anselmi <anselmi at anselmi.us>
To: CLUE's mailing list <clue at cluedenver.org>
Sent: Wed, June 1, 2011 9:36:12 PM
Subject: Re: [clue] [TECH] rsync command runs from command line but not via cron
Brian Gibson wrote:
>
> /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/
Could it be that you need to specify the path to ssh?
Unrelated since you can run by hand, I have a Solaris server that put rsync in
some stupid path that
isn't ever specified in the environment. So from that machine I can use the
full path to run rsync
and go to a Linux machine just fine.
But I can't go from Linux to Solaris because when rsync gets there it tries to
run rsync, which it
can't find.
I'm sure there are ways around it, like setting the environment for ssh, or
perhaps your
--rsync-path. But it wasn't that interesting a problem to solve.
Dave
_______________________________________________
clue mailing list
clue at cluedenver.org
http://cluedenver.org/mailman/listinfo/clue
More information about the clue
mailing list