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

+2 -1
View File
@@ -59,7 +59,8 @@ In that case the user who ran the command is detected automatically, so that '~'
When running as root in other ways (e.g. from a systemd service), specify the user with the --user (or -u) argument.
## Progress
When run in a terminal, simple_backup shows a progress bar with the percentage of files copied and an estimated time to completion.
When run in a terminal, simple_backup shows a progress bar with the percentage of files copied, the copy speed and an estimated time to completion.
Speed and estimated time follow the last 30 seconds, so the estimate adapts when big files are being copied.
Disable it with --no-progress.
## Old backups