Base the progress ETA on the last 30 seconds and show the copy speed

The whole-run file rate is dominated by hard-linked files, so after a big
folder moved the ETA showed seconds while gigabytes were still to be copied.
This commit is contained in:
Fuxino committed 2026-11-21 17:04:49 +01:00
1 parent efdff589f7
commit 8aef768a23
4 files changed
+127 -20

No files matched your search

+3
View File
@@ -116,6 +116,9 @@ Don't use systemd journal for logging.
.B \-\-no\-progress
Don't show a progress bar while rsync copies the files. The progress bar is only shown when
the output is a terminal, so it never appears in the systemd journal or in redirected output.
It shows the percentage of files copied, the copy speed and the estimated time, both from the
last 30 seconds; the time shows \(aq\-\-:\-\-:\-\-\(aq when no file finished in that time (e.g. while
copying a big file).
While rsync is still looking for files, the percentage and estimated time (marked with
\(aq~\(aq) are based on the number of files in the last backup (or on the files found so far,
once this backup has more), and stay below 100%. Without a previous count the bar shows