mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-28 19:34:58 +01:00
60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
|
jobs:
|
||
|
# Separate job for snapshots and pruning
|
||
|
- name: snapshots
|
||
|
type: snap
|
||
|
filesystems:
|
||
|
'tank<': true # all filesystems
|
||
|
snapshotting:
|
||
|
type: periodic
|
||
|
prefix: zrepl_
|
||
|
interval: 10m
|
||
|
pruning:
|
||
|
keep:
|
||
|
# Keep non-zrepl snapshots
|
||
|
- type: regex
|
||
|
negate: true
|
||
|
regex: '^zrepl_'
|
||
|
# Time-based snapshot retention
|
||
|
- type: grid
|
||
|
grid: 1x1h(keep=all) | 24x1h | 30x1d | 12x30d
|
||
|
regex: '^zrepl_'
|
||
|
|
||
|
# Source job for target B
|
||
|
- name: target_b
|
||
|
type: source
|
||
|
serve:
|
||
|
type: tls
|
||
|
listen: :8888
|
||
|
ca: /etc/zrepl/b.example.com.crt
|
||
|
cert: /etc/zrepl/a.example.com.crt
|
||
|
key: /etc/zrepl/a.example.com.key
|
||
|
client_cns:
|
||
|
- b.example.com
|
||
|
filesystems:
|
||
|
'tank<': true # all filesystems
|
||
|
# Snapshots are handled by the separate snap job
|
||
|
snapshotting:
|
||
|
type: manual
|
||
|
|
||
|
# Source job for target C
|
||
|
- name: target_c
|
||
|
type: source
|
||
|
serve:
|
||
|
type: tls
|
||
|
listen: :8889
|
||
|
ca: /etc/zrepl/c.example.com.crt
|
||
|
cert: /etc/zrepl/a.example.com.crt
|
||
|
key: /etc/zrepl/a.example.com.key
|
||
|
client_cns:
|
||
|
- c.example.com
|
||
|
filesystems:
|
||
|
'tank<': true # all filesystems
|
||
|
# Snapshots are handled by the separate snap job
|
||
|
snapshotting:
|
||
|
type: manual
|
||
|
|
||
|
# Source jobs for remaining targets. Each one should listen on a different port
|
||
|
# and reference the correct certificate and client CN.
|
||
|
# - name: target_c
|
||
|
# ...
|