From 8336165f23c25e269a8bdf1c9d280ca6be515eaa Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 23 Jun 2022 10:25:46 -0700 Subject: [PATCH] Update documentation with environment variable escaping (#546). --- docs/how-to/provide-your-passwords.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/how-to/provide-your-passwords.md b/docs/how-to/provide-your-passwords.md index 5afea04..e187512 100644 --- a/docs/how-to/provide-your-passwords.md +++ b/docs/how-to/provide-your-passwords.md @@ -67,6 +67,14 @@ variable doesn't exist, borgmatic will error. To disable this environment variable interpolation feature entirely, you can pass the `--no-environment-interpolation` flag on the command-line. +Or if you'd like to disable interpolation within a single option value, you +can escape it with a backslash. For instance, if your password is literally +`${A}@!`: + +```yaml +storage: + encryption_passphrase: \${A}@! +``` ### Related features