essembeh
  • Joined on 2022-06-12
essembeh commented on issue borgmatic-collective/borgmatic#546 2022-06-17 07:58:15 +00:00
Allow passing database password as environment variables.

The documentation is very clear. Just a missing detail, that I also missed in the unit tests ... you can escape an env var with \

But then I realized that my implementation had an issue, as…

essembeh created pull request borgmatic-collective/borgmatic#549 2022-06-17 07:57:09 +00:00
Fix escaped environment variable in configuration
essembeh pushed to master at essembeh/borgmatic 2022-06-17 07:52:29 +00:00
b63c854509 Fix escaped environment variable in configuration
aa013af25e Remove some whitespace around "New in version ..." documentation labels.
cc32f0018b Start formalizing how new features are flagged by version in documentation.
dfc4db1860 Document environment variable interpolation (#546).
35706604ea Upgrade documentation base images.
Compare 9 commits »
essembeh commented on issue borgmatic-collective/borgmatic#546 2022-06-16 17:00:43 +00:00
Allow passing database password as environment variables.

@witten please have a look to the new PR I just submitted, borgmatic-collective/borgmatic#548

I hesitated between using (os.path.expandvars)[https://docs.pyt

essembeh created pull request borgmatic-collective/borgmatic#548 2022-06-16 16:55:33 +00:00
Allow environment variable resolution in configuration file
essembeh closed pull request borgmatic-collective/borgmatic#545 2022-06-16 16:54:51 +00:00
Allow database password to be read from environ
essembeh commented on pull request borgmatic-collective/borgmatic#545 2022-06-16 16:54:51 +00:00
Allow database password to be read from environ

Better solution to be implemented, see #546

essembeh pushed to configuration-env-resolve at essembeh/borgmatic 2022-06-16 16:53:18 +00:00
97b5cd089d Allow environment variable resolution in configuration file
essembeh pushed to configuration-env-resolve at essembeh/borgmatic 2022-06-16 16:52:38 +00:00
8860093801 Allow environment variable resolution in configuration file
essembeh created branch configuration-env-resolve in essembeh/borgmatic 2022-06-16 16:52:38 +00:00
essembeh commented on issue borgmatic-collective/borgmatic#546 2022-06-14 22:08:59 +00:00
Allow passing database password as environment variables.

Thanks for your quick answers.

I'll have a look to both source files you pointed.

Envsubst is a common and basic linux cli tool, [part or GNU gettext](https://www.gnu.org/software/gettext/man

essembeh commented on issue borgmatic-collective/borgmatic#546 2022-06-14 19:51:13 +00:00
Allow passing database password as environment variables.

Thanks for your answer @witten

I understand the idea of using this env resolution mecanism for other configuration nodes, I was too focus on my initial need.

One thing I don't like in my…

essembeh opened issue borgmatic-collective/borgmatic#546 2022-06-12 20:56:35 +00:00
Allow passing database password as environment variables.
essembeh created pull request borgmatic-collective/borgmatic#545 2022-06-12 20:56:14 +00:00
Allow database password to be read from environ
essembeh pushed to master at essembeh/borgmatic 2022-06-12 20:52:49 +00:00
0dfbf77b7f Allow database password to be read from environ
essembeh created repository essembeh/borgmatic 2022-06-12 20:50:59 +00:00