Bug 14410 - Provide per-file summary info similar to --progress without progress
Summary: Provide per-file summary info similar to --progress without progress
Status: NEW
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.1.3
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-16 20:17 UTC by Evan Harris
Modified: 2020-06-16 20:17 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evan Harris 2020-06-16 20:17:58 UTC
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.