From d8bbe5dc843c67239e5ab584b7ba84ec3bbbe8f0 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 29 Apr 2018 14:19:10 +0200 Subject: [PATCH] Print repository ID after opening --- cmd/restic/global.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/restic/global.go b/cmd/restic/global.go index 6f9d657e3..6fe026bc9 100644 --- a/cmd/restic/global.go +++ b/cmd/restic/global.go @@ -355,7 +355,11 @@ func OpenRepository(opts GlobalOptions) (*repository.Repository, error) { } if stdoutIsTerminal() { - Verbosef("password is correct\n") + id := s.Config().ID + if len(id) > 8 { + id = id[:8] + } + Verbosef("repository %v opened successfully, password is correct\n", id) } if opts.NoCache {