ansible-edda/playbooks/filesystem/yggdrasil/etc/sanoid/sanoid-templates.conf

60 lines
2.1 KiB
Plaintext
Raw Normal View History

2022-11-10 00:13:15 +01:00
# Template for system datasets that are not being backed up anywhere. Snapshots are used to provide
# option for rollback without having to reinstall entire system. If the hardware crashes or becomes
# corrupt reinstalling might be smarter given the fact that hardware will likely be different.
[template_system]
frequently = 0
hourly = 36
daily = 30
monthly = 3
yearly = 0
autosnap = yes
autoprune = yes
# Template for home directories which will use the system template, but they don't change so fast.
2022-11-08 22:40:49 +01:00
[template_home]
hourly = 0
2022-11-10 00:13:15 +01:00
# Template for datasets with production data. Unlike system datasets, production datasets are
# expected to be backed up, both to spare local storage as well as a remote location. Therefore,
# snapshots only serve the purpose of providing snapshots for these backups. Otherwise, don't keep
# snapshots as they will just take up space. Applications that need their data versioned will be
# versioning themselves so they only need backups.
2022-11-08 22:40:49 +01:00
[template_production]
frequently = 0
2022-11-10 00:13:15 +01:00
hourly = 2
daily = 2
monthly = 0
2022-11-08 22:40:49 +01:00
yearly = 0
autosnap = yes
autoprune = yes
2022-11-10 00:13:15 +01:00
# Template for backup datasets which also doubles as a hot spare. The assumption is that these
# backup production datasets. In addition to three months of snapshots, keep 36 hourly snapshots for
# quick rollback in case of trouble. No monthly snapshots are kept as that would require the
# production template to produce them.
2022-11-08 22:40:49 +01:00
[template_backup]
autoprune = yes
frequently = 0
2022-11-10 00:13:15 +01:00
hourly = 36
2022-11-08 22:40:49 +01:00
daily = 90
2022-11-10 00:13:15 +01:00
monthly = 0
2022-11-08 22:40:49 +01:00
yearly = 0
### don't take new snapshots - snapshots on backup
### datasets are replicated in from source, not
### generated locally
autosnap = no
### monitor hourlies and dailies, but don't warn or
### crit until they're over 48h old, since replication
### is typically daily only
hourly_warn = 2880
hourly_crit = 3600
daily_warn = 48
daily_crit = 60
[template_ignore]
autoprune = no
autosnap = no
monitor = no