/usr/bin/ssh not found when rsync is executed within rsnapshot

Wayne Davison wayned at samba.org
Mon Feb 10 11:11:22 MST 2014


On Mon, Feb 10, 2014 at 1:44 AM, Paul Slootman <paul+rsync at wurtel.net>wrote:

> Besides the extraneous -e option this should work.
>

No, the later --rsh option overrides the weird "v" string, so that's not
the issue.  It appears to be that whatever compiled version of rsync he is
using doesn't allow args -- it seems to be trying to find the command using
the full string, including spaces and ssh options.  Since normal rsync
allows command args there, I don't know what is strange about his setup.

There are 2 easy solutions:

1. put what you need to run in a script and specify --rsh=/path/script.

2. put your ssh options into your ~/.ssh/config file, and stop specifying
--rsh.  If you only want that key sometimes when going to that host, you
can specify a host alias in the config.  For instance:

Host debx40-backup
    Hostname debx40
    User backupuser
    IdentityFile /home/backupuser/.ssh/id_rsa

That even lets you omit the "backupuser@" prefix on the command, since you
told ssh to use the right user, but only if you use "debx40-backup:/" for
the destination host.  If you always want those options, just remove the
"-backup" suffix (and the Hostname line) and they will get used for every
ssh to debx40 (by name).

..wayne..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20140210/61294dd9/attachment.html>


More information about the rsync mailing list