Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions changelog/unreleased/issue-4656
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Bugfix: Properly report the ID of newly added keys

`restic key add` now reports the ID of a newly added key. This simplifies
selecting a specific key using the `--key-hint key` option.

https://github.com/restic/restic/issues/4656
https://github.com/restic/restic/pull/4657
2 changes: 1 addition & 1 deletion cmd/restic/cmd_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func addKey(ctx context.Context, repo *repository.Repository, gopts GlobalOption
return err
}

Verbosef("saved new key as %s\n", id)
Verbosef("saved new key with ID %s\n", id.ID())

return nil
}
Expand Down