2017-09-07 11:18:06 +02:00
|
|
|
fullbackup_prod1:
|
2017-09-06 12:46:33 +02:00
|
|
|
|
2017-09-07 11:18:06 +02:00
|
|
|
# expect remote to connect via ssh+stdinserver with fullbackup_prod1 as client_identity
|
2017-09-10 16:01:45 +02:00
|
|
|
type: source
|
2017-09-06 12:46:33 +02:00
|
|
|
serve:
|
2017-09-10 16:01:45 +02:00
|
|
|
# Creates an AF_UNIX socket with name client_identity in a well-known directory
|
|
|
|
# private to the zrepl user (which runs both the zrepld and the stdinserver command via authorized_keys)
|
|
|
|
# The stdinserver command connects to that socket and sends its stdin and stdout
|
|
|
|
# file descriptors over that UNIX socket to the zrepld.
|
|
|
|
# This avoids additional memory-to-memory copies and is more portable than splice(2) on Linux.
|
2017-09-07 11:18:06 +02:00
|
|
|
type: stdinserver
|
|
|
|
client_identity: fullbackup_prod1
|
2017-09-06 12:46:33 +02:00
|
|
|
|
2017-09-07 11:18:06 +02:00
|
|
|
# snapshot these filesystems every 10m with zrepl_ as prefix
|
|
|
|
datasets: {
|
|
|
|
"zroot/var/db<": ok,
|
|
|
|
"zroot/usr/home<": omit,
|
|
|
|
}
|
|
|
|
snapshot_prefix: zrepl_
|
|
|
|
interval: 10m
|
2017-09-06 12:46:33 +02:00
|
|
|
|
2017-09-10 16:01:45 +02:00
|
|
|
|
2017-09-07 11:18:06 +02:00
|
|
|
# keep a one day window 10m interval snapshots in case pull doesn't work (link down, etc)
|
|
|
|
# (we cannot keep more than one day because this host will run out of disk space)
|
|
|
|
prune:
|
|
|
|
policy: grid
|
|
|
|
grid: 1x1d(keep=all)
|
2017-09-06 12:46:33 +02:00
|
|
|
|