浏览代码

Clarify documentation about interacion between "--repository" flag and command hooks (#1112).

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

+ 2 - 1
NEWS

@@ -12,7 +12,8 @@
    incorrectly.
  * #1108: Add a "--comment" flag to the "create" action for creating an archive with a comment.
  * Use the Bandit security analysis tool when running tests.
- * SECURITY: Add timeouts to all monitoring hooks to prevent hangs on network requests.
+ * SECURITY: Add timeouts to all monitoring hooks to prevent hangs on network requests, e.g. due to
+   a compromised monitoring server holding requests open.
  * SECURITY: For the "spot" check, use a more secure source of randomness when selecting paths to
    check.
 

+ 4 - 0
docs/how-to/add-preparation-and-cleanup-steps-to-backups.md

@@ -95,6 +95,10 @@ configured, meaning that the hook commands are run in that directory.
 same `everything` command hook is present in multiple configuration files,
 borgmatic only runs it once.
 
+borgmatic's `--repository` flag does not impact which command hooks get run. But
+you can use the `--config` flag to limit the configuration files (and thus
+command hooks) used.
+
 
 ### Order of execution