Option to set the keyfile to use #1166

Closed
opened 2025-10-23 16:58:57 +00:00 by VasilisThePikachu · 4 comments

What I'd like to do and why

Currently, the only way to get key files is it have them within ~/.config/borg/keys as borg starts.

However, some may prefer to have their key files somewhere else and managed externally. So being able to point to a keyfile via borgmatic would be fantastic.

Other notes / implementation ideas

https://borgbackup.readthedocs.io/en/master/usage/general.html (Search for BORG_KEY_FILE)

### What I'd like to do and why Currently, the only way to get key files is it have them within `~/.config/borg/keys` as borg starts. However, some may prefer to have their key files somewhere else and managed externally. So being able to point to a keyfile via borgmatic would be fantastic. ### Other notes / implementation ideas https://borgbackup.readthedocs.io/en/master/usage/general.html (Search for `BORG_KEY_FILE`)
Owner

Thanks for filing this! This is now implemented in main and will be part of the next release. The new borgmatic configuration option is called borg_key_file.

Thanks for filing this! This is now implemented in main and will be part of the next release. The new borgmatic configuration option is called `borg_key_file`.

Thank you! I was not expecting this that fast. I was actually attempting to setup a dev enviroment myself even x3

Looking forward to the release! Gonna get by with borg_keys_directory for a lil bit

Thank you! I was not expecting this that fast. I was actually attempting to setup a dev enviroment myself even x3 Looking forward to the release! Gonna get by with borg_keys_directory for a lil bit
Owner

You caught me at a good time. 😄

Let me know if you have any problems setting up a dev environment though.

You caught me at a good time. 😄 Let me know if you have any problems setting up a dev environment though.
Owner

Released in borgmatic 2.0.10!

Released in borgmatic 2.0.10!
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
borgmatic-collective/borgmatic#1166
No description provided.