| 1 |
Enhancement: Add key hinting |
| 2 |
|
| 3 |
Added a new option `--key-hint` and corresponding environment variable |
| 4 |
`RESTIC_KEY_HINT`. The key hint is a key ID to try decrypting first, before |
| 5 |
other keys in the repository. |
| 6 |
|
| 7 |
This change will benefit repositories with many keys; if the correct key hint |
| 8 |
is supplied then restic only needs to check one key. If the key hint is |
| 9 |
incorrect (the key does not exist, or the password is incorrect) then restic |
| 10 |
will check all keys, as usual. |
| 11 |
|
| 12 |
https://github.com/restic/restic/issues/2097 |