mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-22 08:23:50 +01:00
556fac3002
closes https://github.com/zrepl/zrepl/pull/552 fixes https://github.com/zrepl/zrepl/issues/551 Signed-off-by: Andrew Gunnerson <chillermillerlong@hotmail.com> Co-authored-by: Christian Schwarz <me@cschwarz.com>
31 lines
894 B
YAML
31 lines
894 B
YAML
jobs:
|
|
# Pull from source server A
|
|
- name: source_a
|
|
type: pull
|
|
connect:
|
|
type: tls
|
|
# Use the correct port for this specific client (eg. B is 8888, C is 8889, etc.)
|
|
address: a.example.com:8888
|
|
ca: /etc/zrepl/a.example.com.crt
|
|
# Use the correct key pair for this specific client
|
|
cert: /etc/zrepl/b.example.com.crt
|
|
key: /etc/zrepl/b.example.com.key
|
|
server_cn: a.example.com
|
|
root_fs: pool0/backup
|
|
interval: 10m
|
|
pruning:
|
|
keep_sender:
|
|
# Source does the pruning in its snap job
|
|
- type: regex
|
|
regex: '.*'
|
|
# Receiver-side pruning can be configured as desired on each target server
|
|
keep_receiver:
|
|
# 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_'
|