forked from borgmatic-collective/borgmatic
Clarify command hooks documentation about YAML sequences (#1255).
This commit is contained in:
parent
aa25dc7b31
commit
f5de6bf43c
1 changed files with 6 additions and 2 deletions
|
|
@ -12,11 +12,15 @@ list of `commands:` in your borgmatic configuration file. For example:
|
|||
```yaml
|
||||
commands:
|
||||
- before: action
|
||||
when: [create]
|
||||
when: [check] # This is an inline YAML sequence.
|
||||
run:
|
||||
- echo "Before create!"
|
||||
- before: action
|
||||
when: [create, prune] # Also an inline YAML sequence.
|
||||
run:
|
||||
- echo "Before create or prune!"
|
||||
- after: action
|
||||
when:
|
||||
when: # Multi-line YAML sequence, equivalent to "[create, prune]".
|
||||
- create
|
||||
- prune
|
||||
run:
|
||||
|
|
|
|||
Loading…
Reference in a new issue