浏览代码

Add "log_file" command hook context to NEWS and docs (#413).

Dan Helfman 2 年之前
父节点
当前提交
4cd7556a34
共有 2 个文件被更改,包括 5 次插入0 次删除
  1. 2 0
      NEWS
  2. 3 0
      docs/how-to/add-preparation-and-cleanup-steps-to-backups.md

+ 2 - 0
NEWS

@@ -1,4 +1,6 @@
 1.7.12.dev0
 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
  * #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
    "--match-archives" flag to correctly override the "match_archives" configuration option for
    the "transfer", "list", "rlist", and "info" actions.
    the "transfer", "list", "rlist", and "info" actions.

+ 3 - 0
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
  * `configuration_filename`: borgmatic configuration filename in which the
    hook was defined
    hook was defined
+ * `log_file`
+   <span class="minilink minilink-addedin">New in version 1.7.12</span>:
+   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
  * `repository`: path of the current repository as configured in the current
    borgmatic configuration file
    borgmatic configuration file