2017-09-11 13:43:18 +02:00
|
|
|
jobs:
|
|
|
|
- name: fullbackup_prod1
|
2017-09-06 12:46:33 +02:00
|
|
|
|
2017-09-07 11:18:06 +02:00
|
|
|
# connect to remote using ssh / stdinserver command
|
|
|
|
type: push
|
2017-09-06 12:46:33 +02:00
|
|
|
connect:
|
2017-09-07 11:18:06 +02:00
|
|
|
type: ssh+stdinserver
|
|
|
|
host: prod1.example.com
|
|
|
|
user: root
|
|
|
|
port: 22
|
|
|
|
identity_file: /root/.ssh/id_ed25519
|
2017-09-06 12:46:33 +02:00
|
|
|
|
2017-09-07 11:18:06 +02:00
|
|
|
# snapshot these datsets every 10m with zrepl_ as prefix
|
|
|
|
datasets: {
|
2017-09-16 19:42:42 +02:00
|
|
|
"zroot/var/db<": "ok",
|
|
|
|
"zroot/usr/home<": "!",
|
2017-09-07 11:18:06 +02:00
|
|
|
}
|
|
|
|
snapshot_prefix: zrepl_
|
|
|
|
interval: 10m
|
2017-09-06 12:46:33 +02:00
|
|
|
|
2017-09-07 11:18:06 +02:00
|
|
|
# keep a one day window 10m interval snapshots in case push 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
|
|
|
|