Home Explore Blog CI



man-pages

13th chunk of `rsync.man`
f80f93ecafb326a78d9de5864c16cb69936ee16090d328dc0000000100000fea
            able) options.

              In  a modern rsync, the -v option is equivalent to the setting of
              groups of --info and --debug options.   You  can  choose  to  use
              these  newer  options in addition to, or in place of using --ver‐
              bose, as any fine‐grained settings override the implied  settings
              of  -v.   Both --info and --debug have a way to ask for help that
              tells you exactly what flags are set for each  increase  in  ver‐
              bosity.

              However,  do keep in mind that a daemon’s "max verbosity" setting
              will limit how high of a level the various individual  flags  can
              be  set  on the daemon side.  For instance, if the max is 2, then
              any info and/or debug flag that is set to  a  higher  value  than
              what  would  be set by -vv will be downgraded to the -vv level in
              the daemon’s logging.

       --info=FLAGS
              This option lets you have fine‐grained control over the  informa‐
              tion output you want to see.  An individual flag name may be fol‐
              lowed by a level number, with 0 meaning to silence that output, 1
              being the default output level, and higher numbers increasing the
              output  of that flag (for those that support higher levels).  Use
              --info=help to see all the available flag names, what  they  out‐
              put,  and what flag names are added for each increase in the ver‐
              bose level.  Some examples:

                  rsync ‐a ‐‐info=progress2 src/ dest/
                  rsync ‐avv ‐‐info=stats2,misc1,flist0 src/ dest/

              Note that --info=name’s output is affected  by  the  --out‐format
              and  --itemize‐changes  (-i) options.  See those options for more
              information on what is output and when.

              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).  See also the "max verbosity" caveat
              above when dealing with a daemon.

       --debug=FLAGS
              This  option  lets  you  have fine‐grained control over the debug
              output you want to see.  An individual flag name may be  followed
              by a level number, with 0 meaning to silence that output, 1 being
              the  default output level, and higher numbers increasing the out‐
              put of that flag (for those that  support  higher  levels).   Use
              --debug=help  to see all the available flag names, what they out‐
              put, and what flag names are added for each increase in the  ver‐
              bose level.  Some examples:

                  rsync ‐avvv ‐‐debug=none src/ dest/
                  rsync ‐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

Title: Rsync Options: Fine-Grained Control with --info and --debug, and stderr Control
Summary
This section details the '--info' and '--debug' options, which provide fine-grained control over the information and debug output during rsync transfers. Users can specify flags and levels to customize the output. Using '--info=help' and '--debug=help' displays available flags and their output. The section also covers how rsync daemon's max verbosity can limit flag levels. Furthermore, it introduces the '--stderr' option, which controls which processes output to stderr.