From 4cd7556a34f1cff6c8c87047f18e6b6872567ab9 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 6 Apr 2023 13:58:37 -0700 Subject: [PATCH] Add "log_file" command hook context to NEWS and docs (#413). --- NEWS | 2 ++ docs/how-to/add-preparation-and-cleanup-steps-to-backups.md | 3 +++ 2 files changed, 5 insertions(+) diff --git a/NEWS b/NEWS index f80169a..1c5bb6f 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,6 @@ 1.7.12.dev0 + * #413: Add "log_file" context to command hooks. See the documentation for more information: + https://torsion.org/borgmatic/docs/how-to/add-preparation-and-cleanup-steps-to-backups/ * #666: Fix error when running the "info" action with the "--match-archives" flag. Also fix the "--match-archives" flag to correctly override the "match_archives" configuration option for the "transfer", "list", "rlist", and "info" actions. diff --git a/docs/how-to/add-preparation-and-cleanup-steps-to-backups.md b/docs/how-to/add-preparation-and-cleanup-steps-to-backups.md index c0bcfb8..426e1a8 100644 --- a/docs/how-to/add-preparation-and-cleanup-steps-to-backups.md +++ b/docs/how-to/add-preparation-and-cleanup-steps-to-backups.md @@ -66,6 +66,9 @@ variables you can use here: * `configuration_filename`: borgmatic configuration filename in which the hook was defined + * `log_file` + New in version 1.7.12: + 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