From ba58ccbe077c5a4b51ca2ad6648f5aa5f2ca77e0 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 22 Oct 2022 19:46:10 +0200 Subject: [PATCH] prune: add remark about non-deterministic blob selection --- cmd/restic/cmd_prune.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/restic/cmd_prune.go b/cmd/restic/cmd_prune.go index 198e269a7..2398b831b 100644 --- a/cmd/restic/cmd_prune.go +++ b/cmd/restic/cmd_prune.go @@ -687,6 +687,7 @@ func printPruneStats(gopts GlobalOptions, stats pruneStats) error { func doPrune(ctx context.Context, opts PruneOptions, gopts GlobalOptions, repo restic.Repository, plan prunePlan) (err error) { if opts.DryRun { if !gopts.JSON && gopts.verbosity >= 2 { + Printf("Repeated prune dry-runs can report slightly different amounts of data to keep or repack. This is expected behavior.\n\n") if len(plan.removePacksFirst) > 0 { Printf("Would have removed the following unreferenced packs:\n%v\n\n", plan.removePacksFirst) }