-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathhooks.toml
35 lines (32 loc) · 1.01 KB
/
hooks.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Hooks configuration
#
# Hooks are commands that are run during certain events in the application lifecycle.
# They can be used to run custom scripts or commands before or after certain actions.
# The hooks are run in the order they are defined in the configuration file.
# The hooks are divided into 4 categories: global, repository, backup,
# and specific backup sources.
#
# You can also read a more detailed explanation of the hooks in the documentation:
# https://rustic.cli.rs/docs/commands/misc/hooks.html
#
# Please make sure to check the in-repository documentation for the config files
# available at: https://github.com/rustic-rs/rustic/blob/main/config/README.md
#
[global.hooks]
run-before = []
run-after = []
run-failed = []
run-finally = []
[repository.hooks]
run-before = []
run-after = []
run-failed = []
run-finally = []
[backup.hooks]
run-before = []
run-after = []
run-failed = []
run-finally = []
[[backup.snapshots]]
sources = []
hooks = { run-before = [], run-after = [], run-failed = [], run-finally = [] }