<div dir="ltr">If you want to pass non-rsync args (etc) you should be using --rsync-path. The -M option is only for sending rsync-related options.</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">..wayne..</div></div>
<br><div class="gmail_quote">On Fri, Oct 28, 2016 at 7:32 AM, John Lane <span dir="ltr"><<a href="mailto:rsync@jelmail.com" target="_blank">rsync@jelmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hello, I asked the below back at the beginning of August but have<br>
received no replies. If anyone can help me with this problem it would be<br>
much appreciated. If I have not provided some necessary information then<br>
please let me know so I may do so. Thanks in advance.<br>
<div class="HOEnZb"><div class="h5"><br>
> I have been working on a backup server where I have a server-side script<br>
> that wraps the server-side rsync invocation. I have used the client-side<br>
> rsync -M (--remote-option) to send options to the server script,<br>
> removing them from the command-line prior to invoking the server-side<br>
> rsync. This was discussed on Stack Exchange<br>
> (<a href="http://unix.stackexchange.com/questions/297143" rel="noreferrer" target="_blank">http://unix.stackexchange.<wbr>com/questions/297143</a>). It works well.<br>
><br>
> However, one observation is that the rsync client's -s (--protect-args)<br>
> option passes all arguments directly into the rsync server and only<br>
> sends a minimal rsync command-line to launch the server-side rsync.<br>
><br>
> This means my script does not see -M options when -s is used. It also<br>
> means that the server-side rsync receives options not intended for it<br>
> and these cause it to terminate.<br>
><br>
> I note from the man-page that the -s option "will eventually become a<br>
> new default setting at some as-yet-undetermined point in the future".<br>
> When that happens, it will break what I have above.<br>
><br>
> So, a couple of questions:<br>
><br>
> * is using -M the right way to send non-rsync options to the server side ?<br>
><br>
> * could it be considered for -s to not affect non-rsync options that<br>
> have been specified with -M ?<br>
><br>
> Thanks for your attention.<br>
><br>
<br>
<br>
--<br>
Please use reply-all for most replies to avoid omitting the mailing list.<br>
To unsubscribe or change options: <a href="https://lists.samba.org/mailman/listinfo/rsync" rel="noreferrer" target="_blank">https://lists.samba.org/<wbr>mailman/listinfo/rsync</a><br>
Before posting, read: <a href="http://www.catb.org/~esr/faqs/smart-questions.html" rel="noreferrer" target="_blank">http://www.catb.org/~esr/faqs/<wbr>smart-questions.html</a></div></div></blockquote></div><br></div>