<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Feb 10, 2014 at 1:44 AM, Paul Slootman <span dir="ltr"><<a href="mailto:paul+rsync@wurtel.net" target="_blank">paul+rsync@wurtel.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":2nr" style="overflow:hidden">Besides the extraneous -e option this should work.<br>

</div></blockquote></div><br>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.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">There are 2 easy solutions:</div><div class="gmail_extra"><br></div><div class="gmail_extra">1. put what you need to run in a script and specify --rsh=/path/script.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">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:</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">Host debx40-backup</div><div class="gmail_extra">    Hostname debx40</div><div class="gmail_extra">    User backupuser</div><div class="gmail_extra">    IdentityFile /home/backupuser/.ssh/id_rsa</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">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).</div>

<div class="gmail_extra"><br clear="all"><div>..wayne..</div>
</div></div>