From 6566f786e90998e7b6bd77eb55af6a402ae0a0b8 Mon Sep 17 00:00:00 2001 From: Michael Eischer <9106997+MichaelEischer@users.noreply.github.com> Date: Wed, 18 Feb 2026 21:21:40 +0100 Subject: [PATCH] stats: also print snapshot size statistics in debug mode (#5712) --- cmd/restic/cmd_stats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/cmd_stats.go b/cmd/restic/cmd_stats.go index 490806e2a..8578a481c 100644 --- a/cmd/restic/cmd_stats.go +++ b/cmd/restic/cmd_stats.go @@ -366,7 +366,7 @@ const ( func statsDebug(ctx context.Context, repo restic.Repository, printer progress.Printer) error { printer.E("Collecting size statistics\n\n") - for _, t := range []restic.FileType{restic.KeyFile, restic.LockFile, restic.IndexFile, restic.PackFile} { + for _, t := range []restic.FileType{restic.KeyFile, restic.LockFile, restic.IndexFile, restic.SnapshotFile, restic.PackFile} { hist, err := statsDebugFileType(ctx, repo, t) if err != nil { return err