Use a list for the expected ordering of intervals
This commit is contained in:
parent
c6931ff48b
commit
d9ab865fd9
@ -25,8 +25,10 @@ nginx_version: latest
|
|||||||
rsnapshot:
|
rsnapshot:
|
||||||
- name: webserver
|
- name: webserver
|
||||||
intervals:
|
intervals:
|
||||||
hourly: 6
|
- name: hourly
|
||||||
daily: 4
|
count: 6
|
||||||
|
- name: daily
|
||||||
|
count: 4
|
||||||
cron:
|
cron:
|
||||||
- interval: hourly
|
- interval: hourly
|
||||||
minute: "*/2" # every even minute
|
minute: "*/2" # every even minute
|
||||||
|
@ -44,8 +44,8 @@ cmd_rsnapshot_diff /usr/bin/rsnapshot-diff
|
|||||||
# backup intervals #
|
# backup intervals #
|
||||||
####################
|
####################
|
||||||
|
|
||||||
{% for backup in item.intervals %}
|
{% for interval in item.intervals %}
|
||||||
retain {{ backup }} {{ item.intervals[backup] }}
|
retain {{ interval.name }} {{ interval.count }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
############################################
|
############################################
|
||||||
|
Loading…
Reference in New Issue
Block a user