[Feature] Add label variable interpolation in hook context #861

Closed
codimp wants to merge 5 commits from codimp/borgmatic:label-variable-interpolation-in-hook-context into main
Showing only changes of commit 9f2facad9d - Show all commits

View File

@ -84,6 +84,8 @@ variables you can use here:
path of the borgmatic log file, only set when the `--log-file` flag is used
* `repository`: path of the current repository as configured in the current
borgmatic configuration file
* `label`: current repository label as configured in the current borgmatic
codimp marked this conversation as resolved Outdated

Sorry, another thing I think I mentioned on IRC.. What do you think of calling this repository_label instead of just label?

Sorry, another thing I think I mentioned on IRC.. What do you think of calling this `repository_label` instead of just `label`?

oups, right, my bad!

oups, right, my bad!
configuration file
Note that you can also interpolate in [arbitrary environment
variables](https://torsion.org/borgmatic/docs/how-to/provide-your-passwords/).