diff --git a/src/cmds/restic/cmd_prune.go b/src/cmds/restic/cmd_prune.go index b7a2653a7..a2aa6451d 100644 --- a/src/cmds/restic/cmd_prune.go +++ b/src/cmds/restic/cmd_prune.go @@ -185,6 +185,9 @@ func (cmd CmdPrune) Execute(args []string) error { cmd.global.Verbosef("creating new index\n") + for _ = range repo.List(backend.Data, done) { + stats.packs++ + } bar = newProgressMax(cmd.global.ShowProgress(), uint64(stats.packs), "files") idx, err = index.New(repo, bar) if err != nil {