2024-07-27 20:49:45 +00:00
|
|
|
global:
|
|
|
|
logging:
|
|
|
|
- type: syslog
|
|
|
|
format: logfmt
|
|
|
|
level: warn
|
2024-07-28 18:46:26 +00:00
|
|
|
monitoring:
|
|
|
|
- type: prometheus
|
|
|
|
listen: ':9811'
|
2024-07-27 20:49:45 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
- name: k6zrepl_offsite_dest
|
|
|
|
type: pull
|
|
|
|
recv:
|
|
|
|
placeholder:
|
|
|
|
encryption: off # https://zrepl.github.io/configuration/sendrecvoptions.html#placeholders
|
|
|
|
# bandwidth_limit:
|
|
|
|
# max: 9 MiB # 75.5 Mbps
|
|
|
|
connect:
|
|
|
|
type: tcp
|
|
|
|
address: '193.40.103.250:35566' # firewall whitelisted to offsite
|
|
|
|
root_fs: {{offsite_dataset}}
|
|
|
|
interval: 10m # start interval, does nothing when no snapshots to recv
|
|
|
|
replication:
|
|
|
|
concurrency:
|
|
|
|
steps: 2
|
|
|
|
pruning:
|
|
|
|
keep_sender: # offsite does not dictate nas snapshot policy
|
|
|
|
- type: regex
|
|
|
|
regex: '.*'
|
|
|
|
keep_receiver:
|
|
|
|
# Keep non-zrepl snapshots
|
|
|
|
- negate: true
|
|
|
|
type: regex
|
|
|
|
regex: "^zrepl_"
|
|
|
|
|
|
|
|
- type: last_n
|
|
|
|
regex: "^zrepl_"
|
|
|
|
count: 4
|
|
|
|
- type: grid
|
|
|
|
regex: "^zrepl_"
|
|
|
|
grid: 4x1h | 6x4h | 3x1d | 2x7d
|