Use values from BORG_* env variables if they are not specified in config.yaml #327

Merged
witten merged 1 commits from :master into master 2020-06-21 21:30:02 +00:00
Contributor

The rational behind this pull request is to allow the user to preset certain BORG_* environment variables and let borgmatic just pass them through to borg if they are not defined differently in the config.yaml file.

The rational behind this pull request is to allow the user to preset certain `BORG_*` environment variables and let borgmatic just pass them through to `borg` if they are not defined differently in the config.yaml file.
Owner

Totally makes sense! Would you mind also updating tests to cover this change? The test file in question is tests/unit/borg/test_environment.py. I'm happy to help out with the tests if it's not clear.

Totally makes sense! Would you mind also updating tests to cover this change? The test file in question is `tests/unit/borg/test_environment.py`. I'm happy to help out with the tests if it's not clear.
Owner

Since this is a fix for a fairly annoying regression, I'll go ahead and merge it and fix up the tests in master. Thanks for your contribution!

Since this is a fix for a fairly annoying regression, I'll go ahead and merge it and fix up the tests in master. Thanks for your contribution!
witten merged commit c8d5de2179 into master 2020-06-21 21:30:01 +00:00
Owner

Released in borgmatic 1.5.7!

Released in borgmatic 1.5.7!
Sign in to join this conversation.
No reviewers
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#327
No description provided.