2017-09-11 13:43:18 +02:00
|
|
|
jobs:
|
|
|
|
- name: fullbackup_prod1
|
2017-09-07 11:18:06 +02:00
|
|
|
type: pull
|
2017-09-11 13:43:18 +02:00
|
|
|
# connect to remote using ssh / stdinserver command
|
2017-09-06 12:46:33 +02:00
|
|
|
connect:
|
2017-09-07 11:18:06 +02:00
|
|
|
type: ssh+stdinserver
|
|
|
|
host: prod1.example.com
|
2017-09-06 12:46:33 +02:00
|
|
|
user: root
|
|
|
|
port: 22
|
|
|
|
identity_file: /root/.ssh/id_ed25519
|
|
|
|
|
2017-09-13 23:27:18 +02:00
|
|
|
# pull (=ask for new snapshots) every 10m, prune afterwards
|
|
|
|
# this will leave us at most 10m behind production
|
|
|
|
interval: 10m
|
|
|
|
|
2017-09-07 11:18:06 +02:00
|
|
|
# pull all offered filesystems to storage/backups/zrepl/pull/prod1.example.com
|
|
|
|
mapping: {
|
|
|
|
"<":"storage/backups/zrepl/pull/prod1.example.com"
|
|
|
|
}
|
2017-09-10 16:01:45 +02:00
|
|
|
initial_repl_policy: most_recent
|
2017-09-06 12:46:33 +02:00
|
|
|
|
2017-09-07 11:18:06 +02:00
|
|
|
# follow a grandfathering scheme for filesystems on the right-hand-side of the mapping
|
2017-09-10 16:01:45 +02:00
|
|
|
snapshot_prefix: zrepl_
|
2017-09-07 11:18:06 +02:00
|
|
|
prune:
|
|
|
|
policy: grid
|
|
|
|
grid: 1x1h(keep=all) | 24x1h | 35x1d | 6x30d
|
2017-09-06 12:46:33 +02:00
|
|
|
|