From: Wayne Davison Date: Sun, 11 Sep 2011 18:01:04 +0000 (-0700) Subject: Document --msgs2stderr. X-Git-Tag: v3.1.0pre1~86 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c1005fb256ecd764caf23f54080ffbcf550b78f2;p=thirdparty%2Frsync.git Document --msgs2stderr. --- diff --git a/options.c b/options.c index 6ba6669d..70905b88 100644 --- a/options.c +++ b/options.c @@ -665,6 +665,7 @@ void usage(enum logcode F) rprintf(F," -v, --verbose increase verbosity\n"); rprintf(F," --info=FLAGS fine-grained informational verbosity\n"); rprintf(F," --debug=FLAGS fine-grained debug verbosity\n"); + rprintf(F," --msgs2stderr special output handling for debugging\n"); rprintf(F," -q, --quiet suppress non-error messages\n"); rprintf(F," --no-motd suppress daemon-mode MOTD (see manpage caveat)\n"); rprintf(F," -c, --checksum skip based on checksum, not mod-time & size\n"); diff --git a/rsync.yo b/rsync.yo index 96e26344..7cf3a801 100644 --- a/rsync.yo +++ b/rsync.yo @@ -320,6 +320,7 @@ to the detailed description below for a complete description. verb( -v, --verbose increase verbosity --info=FLAGS fine-grained informational verbosity --debug=FLAGS fine-grained debug verbosity + --msgs2stderr special output handling for debugging -q, --quiet suppress non-error messages --no-motd suppress daemon-mode MOTD (see caveat) -c, --checksum skip based on checksum, not mod-time & size @@ -538,6 +539,16 @@ This option was added to 3.1.0, so an older rsync on the server side might reject your attempts at fine-grained control (if one or more flags needed to be send to the server and the server was too old to understand them). +dit(bf(--msgs2stderr)) This option changes rsync to send all its output +directly to stderr rather than to send messages to the client side via the +protocol (which normally outputs info messages via stdout). This is mainly +intended for debugging in order to avoid changing the data sent via the +protocol, since the extra protocol data can change what is being tested. +Keep in mind that a daemon connection does not have a stderr channel to send +messages back to the client side, so if you are doing any daemon-transfer +debugging using this option, you should start up a daemon using bf(--no-detach) +so that you can see the stderr output on the daemon side. + dit(bf(-q, --quiet)) This option decreases the amount of information you are given during the transfer, notably suppressing information messages from the remote server. This option name is useful when invoking rsync from