implement automatic snapshotting feature

This commit is contained in:
Christian Schwarz
2017-07-01 20:28:46 +02:00
parent 8c8a6ee905
commit 655b3ab55f
5 changed files with 211 additions and 6 deletions
+22
View File
@@ -97,3 +97,25 @@ prune:
snapshot_filter: {
prefix: zrepl_
}
- name: hfbak_prune # cleans up after hfbak autosnap job
policy: grid
grid: 1x1min(keep=all)
dataset_filter: {
"pool1*": ok
}
snapshot_filter: {
prefix: zrepl_hfbak_
}
autosnap:
- name: hfbak
prefix: zrepl_hfbak_
interval: 1s
dataset_filter: {
"pool1*": ok
}
# prune: hfbak_prune
# future versions may inline the retention policy here, but for now,
# pruning has to be triggered manually (it's safe to run autosnap + prune in parallel)