diff --git a/src/cmds/restic/cmd_prune.go b/src/cmds/restic/cmd_prune.go index 1922f35ce..5583b2a15 100644 --- a/src/cmds/restic/cmd_prune.go +++ b/src/cmds/restic/cmd_prune.go @@ -184,7 +184,7 @@ func pruneRepository(gopts GlobalOptions, repo restic.Repository) error { } } - removeBytes := 0 + removeBytes := duplicateBytes // find packs that are unneeded removePacks := restic.NewIDSet()