From c34ad7dde70756ea246ad7b41e3a42b2a9c92d0f Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Sun, 19 Nov 2023 21:22:10 -0800 Subject: [PATCH] Update documentation about configuration includes and constants (#745). --- docs/how-to/make-per-application-backups.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/how-to/make-per-application-backups.md b/docs/how-to/make-per-application-backups.md index 9f212d95..97ee754a 100644 --- a/docs/how-to/make-per-application-backups.md +++ b/docs/how-to/make-per-application-backups.md @@ -540,8 +540,7 @@ tool is borgmatic's support for defining custom constants. This is similar to the [variable interpolation feature](https://torsion.org/borgmatic/docs/how-to/add-preparation-and-cleanup-steps-to-backups/#variable-interpolation) for command hooks, but the constants feature lets you substitute your own -custom values into anywhere in the entire configuration file. (Constants don't -work across includes or separate configuration files though.) +custom values into anywhere in the entire configuration file. Here's an example usage: @@ -579,5 +578,9 @@ source_directories: archive_name_format: 'bar-{now}' ``` +New in version 1.8.5 Constants +work across includes, meaning you can define a constant and then include a +separate configuration file that uses that constant. + An alternate to constants is passing in your values via [environment variables](https://torsion.org/borgmatic/docs/how-to/provide-your-passwords/).