[clue] [TECH] rsync command runs from command line but not via cron
David L. Anselmi
anselmi at anselmi.us
Wed Jun 1 21:36:12 MDT 2011
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
More information about the clue
mailing list