浏览代码

Clarify documentation on command hooks order of execution (#1099).

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

+ 1 - 0
NEWS

@@ -1,4 +1,5 @@
 2.0.7.dev0
+ * #1099: Clarify documentation on command hooks order of execution.
  * #1100: Fix a bug in which "borg --version" failing isn't considered a "fail" state in a command
    hook.
 

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

@@ -130,6 +130,10 @@ have a chance to run. Whereas the `after: error` hook doesn't run until all
 actions for—and repositories in—a configuration file have had a chance to
 execute.
 
+And if there are multiple hooks defined for a particular step (e.g. `before:
+action` for `create`), then those hooks are run in the order they're defined in
+configuration.
+
 
 ### Deprecated command hooks