Skip to content

How do I recover the key for autorestic if I redeployed entire config (restic REST backend)? #422

Closed Answered by Kenya-West
Kenya-West asked this question in Q&A
Discussion options

You must be logged in to vote

Do not forget about KISS. It's simple...

If you want to save a key to decrypt repositories, just save the value of the actual key line for each of backends in .autorestic.yaml config.

Here's the yq command for that:

yq eval '.backends | to_entries | .[] | {"name": .key, "key": .value.key, "path": .value.path}'

- that's it, lol.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Kenya-West
Comment options

Answer selected by Kenya-West
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant