When a configuration include is a relative path, load it from either the current working directory or from the directory containing the file doing the including (#532).

This commit is contained in:
Dan Helfman
2022-05-19 17:15:05 -07:00
parent cd234b689d
commit 788281cfb9
5 changed files with 165 additions and 29 deletions
@@ -75,6 +75,10 @@ themselves and complaining that they are not valid configuration files, you
should put them in a directory other than `/etc/borgmatic.d/`. (A subdirectory
is fine.)
When a configuration include is a relative path, borgmatic loads it from either
the current working directory or from the directory containing the file doing
the including.
Note that this form of include must be a YAML value rather than a key. For
example, this will not work: