<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Aug 30, 2014 at 3:36 AM, Dave Gradwell <span dir="ltr"><<a href="mailto:davegradwell@yahoo.co.uk" target="_blank">davegradwell@yahoo.co.uk</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As far as I can see, the only way you can tell it's been a dry-run at the receiver-side, is to parse RSYNC_ARGs in the pre-xfer script.<br>

</blockquote><div><br></div><div>It's not clear what you mean, whether you're talking about only a daemon, or a client message or what.  If you have transfer logging enabled in a daemon, only non-dry-run files will be logged as transfers.  If you're talking about a client, you can always use --info=stats (or --stats on an older rsync) to see the trailing stats lines that mentions "(DRY RUN)".</div>

<div><br></div><div>If you end up parsing args in a pre-xfer script, be sure to weed out any arg-specifying short options from your checking for the -n arg (e.g. /^-[^BefMT]*n/) and some non-official passing of the long (--dry-run) option as well.</div>

<div><br></div><div>..wayne..</div></div></div></div>