2017-09-11 13:43:18 +02:00
|
|
|
jobs:
|
|
|
|
- name: mirror_local
|
2017-09-07 11:18:06 +02:00
|
|
|
type: local
|
|
|
|
|
|
|
|
# snapshot the filesystems matched by the left-hand-side of the mapping
|
|
|
|
# every 10m with zrepl_ as prefix
|
|
|
|
mapping: {
|
|
|
|
"zroot/var/db<": "storage/backups/local/zroot/var/db",
|
|
|
|
"zroot/usr/home<": "storage/backups/local/zroot/usr/home",
|
2017-10-02 18:29:08 +02:00
|
|
|
"zroot/usr/home/paranoid": "!", #don't backup paranoid user
|
|
|
|
"zroot/poudriere/ports<": "!", #don't backup the ports trees
|
2017-09-07 11:18:06 +02:00
|
|
|
}
|
|
|
|
snapshot_prefix: zrepl_
|
|
|
|
interval: 10m
|
2017-09-10 16:01:45 +02:00
|
|
|
initial_repl_policy: most_recent
|
2017-09-07 11:18:06 +02:00
|
|
|
|
|
|
|
# keep one hour of 10m interval snapshots of filesystems matched by
|
|
|
|
# the left-hand-side of the mapping
|
|
|
|
prune_lhs:
|
|
|
|
policy: grid
|
|
|
|
grid: 1x1h(keep=all)
|
2018-02-17 20:48:31 +01:00
|
|
|
keep_bookmarks: all
|
2017-09-07 11:18:06 +02:00
|
|
|
|
|
|
|
# follow a grandfathering scheme for filesystems on the right-hand-side of the mapping
|
|
|
|
prune_rhs:
|
|
|
|
policy: grid
|
|
|
|
grid: 1x1h(keep=all) | 24x1h | 35x1d | 6x30d
|
2017-09-06 12:46:33 +02:00
|
|
|
|
|
|
|
|