[Bug 14410] New: Provide per-file summary info similar to --progress without progress

samba-bugs at samba.org samba-bugs at samba.org
Tue Jun 16 20:17:58 UTC 2020


https://bugzilla.samba.org/show_bug.cgi?id=14410

            Bug ID: 14410
           Summary: Provide per-file summary info similar to --progress
                    without progress
           Product: rsync
           Version: 3.1.3
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
          Assignee: wayne at opencoder.net
          Reporter: eharris at puremagic.com
        QA Contact: rsync-qa at samba.org
  Target Milestone: ---

I'm trying to find a way to get per-file transfer statistics similar to what is
provided by --progress (filename, total size, transfer rate, total time, xfr#,
to-chk) but without the progress updates.  --progress is fine for interactive
sessions, but when capturing the output to logs, the tons of same-line updates
makes the logs unnecessarily huge as well as hard to view.

I looked at trying to use --out-format (log format) for this, but it seems to
be missing several fields provided by --progress, in fact, the only two it
seems to support is the filename and the total file size.  I'm trying to get
something more like:

--out-format="%n\n\t%l %b %<reduction percent> %<xfer rate> %<transfer time>
(xfr#<number>, to-chk=<numbers>)"

So I guess that this is a feature request for adding these additional fields to
supported substitutions for --out-format, and a shorthand option (like
--summary) that will output the per-file info like --progress but without
progress.

New --out-format fields wanted:

human-readable total file size (like %l but with commas like --progress)
transfer rate (e.g. "13.92MB/s", just like --progress)
transfer reduction/efficiency (%b/%l as a percentage, e.g. " 65%")
transfer time (e.g. "0:00:04", like --progress, but the total time the transfer
took instead of the time remaining)
transfer number (like --progress xfr#)
to-check info (like --progress to-chk, e.g. "3/7")

As a side note, it appears (at least in rsync 3.1.3) that multi-line
--out-format is broken (can't include newline or tabs), but I will create that
as a separate ticket.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.


More information about the rsync mailing list