forked from Jip-Hop/udev-trigger-zfs-autobackup
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config_template.yaml
52 lines (50 loc) · 2.02 KB
/
config_template.yaml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Configure logging. Remove this entirely if you don't want to write to a logfile.
# Everything is also written to stdout
# level: set the log level, currently everything is logged as INFO or ERROR
# logfile_path: the absolute path to the logfile.
logging:
level: "DEBUG"
logfile_path: "/mnt/path/to/logfile.log"
# Enter an smtp configuration. Remove this config entirely, if you do not want so send mails.
# Keep this config somewhere only root can read because you need to enter your mail password
smtp:
server: "smtp.example.com"
port: 587
login: "[email protected]"
password: "your_password"
send_autobackup_output: true
# List any pools you want to backup
# - pool_name: the name of the pool, also the label under /dev/disk/by-label/
# current limitation is that each pool_name can only be used once
# - split_parameters: optional parameter (true by default), splits zfs-autobackup parameters on spaces into separate cli parameters.
# E.g. if you use '--set-properties readonly=on' this needs to be true, otherwise you need to split it into two
# parameters yourself.
# - autobackup_parameters: the command line arguments you want to pass to zfs-autobackup
# - passphrase: optional encryption passphrase, can be an empty string
pools:
pool1:
pool_name: "OnePool"
split_parameters: true
autobackup_parameters:
- "-v"
- "--debug"
- "--clear-mountpoint"
- "--set-properties readlonly=on"
- "--keep-source=10,1d1w,1w1m,1m1y"
- "--keep-target=10,1d1w,1w1m,1m1y"
- "zfs-label"
- "pool/path/to/target/dataset"
passphrase: ""
pool2:
pool_name: "AnotherPool"
split_parameters: false
autobackup_parameters:
- "-v"
- "--debug"
- "--clear-mountpoint"
- "--keep-source=10,1d1w,1w1m,1m1y"
- "--keep-target=10,1d1w,1w1m,1m1y"
- "zfs-label2"
- "pool/path/to/target/dataset2"
passphrase: ""