homeserver/roles/mgrote.zfs_sanoid/templates/sanoid.conf.j2
mg 513c7bda3a neues Dataset für PVE-Backups (#46)
Housekeeping

neues dataset als smb_share

neues dataset für pve-backups erstellt

Bugfix sanoid conf

neues dataset angelegt

sanoid mit option snapshots zu deaktivieren

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#46
Co-Authored-By: mg <mg@noreply.git.mgrote.net>
Co-Committed-By: mg <mg@noreply.git.mgrote.net>
2021-03-19 23:07:23 +01:00

30 lines
976 B
Django/Jinja

{{ file_header | default () }}
## ZFS Section -------------------------------- ##
{% for item in sanoid_datasets if item.snapshots is sameas true %}
{% if item.snapshots is sameas true %}
[{{ item.path }}]
use_template = {{ item.template }}
recursive = {{ item.recursive }}
## -------------------------------------------- ##
{% endif %}
{% endfor %}
## Template Section --------------------------- ##
{% for item in sanoid_templates %}
[template_{{ item.name }}]
## Keep-Rules
hourly = {{ item.keep_hourly }}
daily = {{ item.keep_daily }}
monthly = {{ item.keep_monthly }}
yearly = {{ item.keep_yearly }}
frequently = {{ item.frequently }}
## Interval
frequent_period = {{ item.frequent_period }}
## Other Options
autosnap = {{ item.autosnap }}
autoprune = {{ item.autoprune }}
## -------------------------------------------- ##
{% endfor %}