From 71537da4b0934bda70c837758c187be2b4922c54 Mon Sep 17 00:00:00 2001 From: Torben Giesselmann Date: Sun, 9 Apr 2023 14:59:07 -0700 Subject: [PATCH] init: Add --copy-chunker-params verbose msg --- cmd/restic/cmd_init.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/restic/cmd_init.go b/cmd/restic/cmd_init.go index 2932870e8..a878f3e16 100644 --- a/cmd/restic/cmd_init.go +++ b/cmd/restic/cmd_init.go @@ -102,7 +102,12 @@ func runInit(ctx context.Context, opts InitOptions, gopts GlobalOptions, args [] } if !gopts.JSON { - Verbosef("created restic repository %v at %s\n", s.Config().ID[:10], location.StripPassword(gopts.Repo)) + Verbosef("created restic repository %v at %s", s.Config().ID[:10], location.StripPassword(gopts.Repo)) + if opts.CopyChunkerParameters && chunkerPolynomial != nil { + Verbosef(" with chunker parameters copied from secondary repository\n") + } else { + Verbosef("\n") + } Verbosef("\n") Verbosef("Please note that knowledge of your password is required to access\n") Verbosef("the repository. Losing your password means that your data is\n")