Skip to content

Confusing output with --info=progress2 #392

@Swire42

Description

@Swire42

The problem

Unlike --info=progress, --info=progress2 does not insert newlines after each transferred file.

This is a problem because progress2 displays 2 different kinds of information:

  • During file transfer it seems to display instantaneous transfer rate and ETA (+ other things)
  • Between 2 file transfers it seems to display average transfer rate since the beginnning and time elapsed (+ other things).

Without newlines, these 2 overwrite each other, making it hard to read, and confusing people (see comments on https://unix.stackexchange.com/questions/215271/understanding-the-output-of-info-progress2-from-rsync).

A quick fix is to use something like --info=name,progress2, which causes newlines to be inserted, thus separating the 2 kinds of output.

Possible solutions

Newlines

Adding newlines to --info=progress2.
Is it really meaningful to have one line per file when asking for total progress though ?

Simpler output

Only display instantaneous transfer rate and ETA (+ other things), as it seems to be the most relevant information.
This would have the advantage of keeping the one line output, while also making it readable.

Other solutions

  • Adding more output control by extending --out-format to such information.
  • Always displaying these 4 metrics instead of alternating.
  • ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions