Enviroment Variables #152

Closed
opened 2019-03-12 19:15:51 +00:00 by airbillion · 3 comments

How do you add Enviroment Variables such as:

BORG_BASE_DIR=/not/default/location

BORG_CONFIG_DIR=/not/default/location

BORG_CACHE_DIR=/not/default/location

BORG_KEYS_DIR=/not/default/location

I do not use the standard /home/.cache location...

Thank you!

How do you add Enviroment Variables such as: BORG_BASE_DIR=/not/default/location BORG_CONFIG_DIR=/not/default/location BORG_CACHE_DIR=/not/default/location BORG_KEYS_DIR=/not/default/location I do not use the standard /home/.cache location... Thank you!
witten added the
question / support
label 2019-03-12 19:23:28 +00:00
Owner

You should be able to add those in the environment in which you invoke borgmatic. For instance:

BORG_CONFIG_DIR=/not/default/location borgmatic ...

Does that work for you?

If some of these would be more convenient as official borgmatic config options, then please feel free to file a ticket for those! Thanks.

You should be able to add those in the environment in which you invoke borgmatic. For instance: ```bash BORG_CONFIG_DIR=/not/default/location borgmatic ... ``` Does that work for you? If some of these would be more convenient as official borgmatic config options, then please feel free to file a ticket for those! Thanks.
Author

Hello,

OK...that helps a little.

It would be more convenient as official borgmatic config options if it was possible to add.

Currently I created a backup.sh script with:

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

at the very top....

However, if they could be added into the config .yaml that would be great!!

Thank you for your help!

Hello, OK...that helps a little. It would be more convenient as official borgmatic config options if it was possible to add. Currently I created a backup.sh script with: 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 at the very top.... However, if they could be added into the config .yaml that would be great!! Thank you for your help!
Owner

Glad that's working out for you in the meantime. I'll close this in favor of the other ticket you filed on this, #153!

Glad that's working out for you in the meantime. I'll close this in favor of the other ticket you filed on this, #153!
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#152
No description provided.