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:
|
||||
- name: webserver
|
||||
intervals:
|
||||
hourly: 6
|
||||
daily: 4
|
||||
- name: hourly
|
||||
count: 6
|
||||
- name: daily
|
||||
count: 4
|
||||
cron:
|
||||
- interval: hourly
|
||||
minute: "*/2" # every even minute
|
||||
|
@ -44,8 +44,8 @@ cmd_rsnapshot_diff /usr/bin/rsnapshot-diff
|
||||
# backup intervals #
|
||||
####################
|
||||
|
||||
{% for backup in item.intervals %}
|
||||
retain {{ backup }} {{ item.intervals[backup] }}
|
||||
{% for interval in item.intervals %}
|
||||
retain {{ interval.name }} {{ interval.count }}
|
||||
{% endfor %}
|
||||
|
||||
############################################
|
||||
|
Loading…
Reference in New Issue
Block a user