Home Explore Blog CI



man-pages

14th chunk of `rsync.man`
9dc91a81c46ef0dcaebd202ccbb9a1d81703a289494cd2050000000100000fcf
 ‐avA ‐‐del ‐‐debug=del2,acl src/ dest/

              Note  that  some  debug  messages  will  only  be output when the
              --stderr=all option is specified, especially those pertaining  to
              I/O and buffer debugging.

              Beginning  in  3.2.0,  this option is no longer auto‐forwarded to
              the server side in order to allow you to specify different  debug
              values for each side of the transfer, as well as to specify a new
              debug  option  that is only present in one of the rsync versions.
              If you want to duplicate the same option  on  both  sides,  using
              brace  expansion  is  an  easy way to save you some typing.  This
              works in zsh and bash:

                  rsync ‐aiv {‐M,}‐‐debug=del2 src/ dest/

       --stderr=errors|all|client
              This option controls which processes output to stderr and if info
              messages are also changed to stderr.  The mode strings can be ab‐
              breviated, so feel free to use a single letter value.  The 3 pos‐
              sible choices are:

              o      errors - (the default) causes all the rsync  processes  to
                     send  an  error directly to stderr, even if the process is
                     on the remote side of the  transfer.   Info  messages  are
                     sent  to  the  client  side  via  the protocol stream.  If
                     stderr is not available  (i.e.  when  directly  connecting
                     with a daemon via a socket) errors fall back to being sent
                     via the protocol stream.

              o      all  -  causes  all rsync messages (info and error) to get
                     written directly to stderr from all (possible)  processes.
                     This  causes  stderr  to  become line‐buffered (instead of
                     raw) and eliminates the ability to divide up the info  and
                     error  messages by file handle.  For those doing debugging
                     or using several levels of verbosity, this option can help
                     to avoid clogging up the  transfer  stream  (which  should
                     prevent  any  chance of a deadlock bug hanging things up).
                     It also allows --debug to enable some  extra  I/O  related
                     messages.

              o      client  -  causes  all  rsync  messages  to be sent to the
                     client side via the protocol stream.  One  client  process
                     outputs  all messages, with errors on stderr and info mes‐
                     sages on stdout.  This was the default in older rsync ver‐
                     sions, but can cause error delays when a lot  of  transfer
                     data is ahead of the messages.  If you’re pushing files to
                     an  older  rsync,  you  may want to use --stderr=all since
                     that idiom has been around for several releases.

              This option was added in rsync 3.2.3.  This  version  also  began
              the  forwarding  of  a  non‐default  setting  to the remote side,
              though rsync uses the backward‐compatible  options  --msgs2stderr
              and  --no‐msgs2stderr  to  represent the all and client settings,
              respectively.  A newer rsync will continue to accept these  older
              option names to maintain compatibility.

       --quiet, -q
              This  option  decreases  the  amount of information you are given
              during the transfer,  notably  suppressing  information  messages
              from  the  remote  server.   This  option is useful when invoking
              rsync from cron.

       --no‐motd
              This option affects the information that is output by the  client
              at  the start of a daemon transfer.  This suppresses the message‐
              of‐the‐day (MOTD) text, but

Title: Rsync Options: Debugging, stderr Control, and Quiet Mode
Summary
This section discusses rsync's debugging options. Specifically, it expands on the '--debug' option, highlighting that since version 3.2.0, it's no longer automatically forwarded to the server, allowing for different debug values on each side of the transfer. It also details the '--stderr' option, which controls where rsync messages (errors and info) are sent, with options for 'errors', 'all', and 'client'. It also covers the '--quiet' option, which reduces the amount of information displayed, and the '--no-motd' option, which suppresses the message-of-the-day at the start of a daemon transfer.