diff --git a/cmd/restic/global.go b/cmd/restic/global.go index 96c640f76..b4da9dfbe 100644 --- a/cmd/restic/global.go +++ b/cmd/restic/global.go @@ -498,7 +498,11 @@ func OpenRepository(ctx context.Context, opts GlobalOptions) (*repository.Reposi id = id[:8] } if !opts.JSON { - Verbosef("repository %v opened (version %v, compression level %v)\n", id, s.Config().Version, opts.Compression.String()) + extra := "" + if s.Config().Version >= 2 { + extra = ", compression level " + opts.Compression.String() + } + Verbosef("repository %v opened (version %v%s)\n", id, s.Config().Version, extra) } }