From ed23edeb624a55ed40f31ff77071cd7dc2ab34bb Mon Sep 17 00:00:00 2001 From: Aneesh Nireshwalia Date: Sat, 21 Jan 2023 13:25:08 -0700 Subject: [PATCH 1/2] ui/backup: Fix percent and eta in backup progress Added missing call to scanFinished=true. This was causing the percent and eta to never get printed for backup progress even after the scan was finished. --- internal/ui/backup/progress.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/ui/backup/progress.go b/internal/ui/backup/progress.go index 71facda4c..720a2a58f 100644 --- a/internal/ui/backup/progress.go +++ b/internal/ui/backup/progress.go @@ -199,6 +199,7 @@ func (p *Progress) ReportTotal(item string, s archiver.ScanStats) { p.scanStarted = true if item == "" { + p.scanFinished = true p.printer.ReportTotal(item, p.start, s) } } From c527c055905666ea623c5d7e78f3273b91c6a64a Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sun, 22 Jan 2023 15:32:55 +0100 Subject: [PATCH 2/2] add changelog for missing backup ETA --- changelog/unreleased/pull-4167 | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 changelog/unreleased/pull-4167 diff --git a/changelog/unreleased/pull-4167 b/changelog/unreleased/pull-4167 new file mode 100644 index 000000000..c60d7bc0c --- /dev/null +++ b/changelog/unreleased/pull-4167 @@ -0,0 +1,6 @@ +Bugfix: ETA was missing from `backup` progress bar + +A regression in restic 0.15.0 caused the ETA to be missing from the progress +bar displayed by the `backup` command. This has been fixed. + +https://github.com/restic/restic/pull/4167