Allow environment variable resolution in configuration file #548
Reference in New Issue
Block a user
Delete Branch ":configuration-env-resolve"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
be resolved
values if variable is not present in environment
by default
Resolves: #546
- all string fields containing an environment variable like ${FOO} will be resolved - supported format ${FOO}, ${FOO:-bar} and ${FOO-bar} to allow default values if variable is not present in environment - add --no-env argument for CLI to disable the feature which is enabled by default Resolves: #546This looks great. And tests too! Thank you so much for taking the time to do this when all you needed was the database password from the environment. Clever use of the negative look-ahead for an escaped
$.. I wouldn't have thought of that. Heads up that I may rename the--no-envflag for consistency with other borgmatic flags. And I can write up some documentation when I get a chance.