#153 Add Evnironment Variables to borgmatic .yaml config file

Closed
opened 2 months ago by airbillion · 6 comments

Can you please add the below environment variables as official borgmatic config options?

export BORG_BASE_DIR=/not/default/location

export BORG_CONFIG_DIR=/not/default/location

export BORG_CACHE_DIR=/not/default/location

export BORG_KEYS_DIR=/not/default/location

Can you please add the below environment variables as official borgmatic config options? export BORG_BASE_DIR=/not/default/location export BORG_CONFIG_DIR=/not/default/location export BORG_CACHE_DIR=/not/default/location export BORG_KEYS_DIR=/not/default/location

Hey, thanks for this simply awesome tool. This is important especially in the case where multiple remote repositories are being used and each one requires a different passphrase to access the repository (I need BORG_PASSPHRASE for example).

Hey, thanks for this simply awesome tool. This is important especially in the case where multiple remote repositories are being used and each one requires a different passphrase to access the repository (I need `BORG_PASSPHRASE` for example).

Opened up #159 after …

Opened up https://projects.torsion.org/witten/borgmatic/issues/159 after ...
witten commented 2 weeks ago
Owner

I commented on #159, but I consider BORG_PASSPHRASE already supported by the existing borgmatic encryption_passphrase option. The other environment variables though could definitely be added as additional options.

I commented on #159, but I consider `BORG_PASSPHRASE` already supported by the existing borgmatic `encryption_passphrase` option. The other environment variables though could definitely be added as additional options.
witten commented 1 week ago
Owner

Implemented and released as part of borgmatic 1.3.5. You can find the new borgmatic configuration options that support this in the storage: section. Here’s the full list:

  • borg_base_directory
  • borg_config_directory
  • borg_cache_directory
  • borg_security_directory
  • borg_keys_directory

Enjoy!

Implemented and released as part of borgmatic 1.3.5. You can find the new borgmatic configuration options that support this in the `storage:` section. Here's the full list: * `borg_base_directory` * `borg_config_directory` * `borg_cache_directory` * `borg_security_directory` * `borg_keys_directory` Enjoy!

Excellent stuff!

Excellent stuff!
airbillion commented 1 week ago
Poster

Great!

Thank you!

Can’t wait to try it out…

Great! Thank you! Can't wait to try it out...
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
Cancel
Save
There is no content yet.