diff --git a/templates/prune.sh.j2 b/templates/prune.sh.j2 index f01bb2a..5513694 100644 --- a/templates/prune.sh.j2 +++ b/templates/prune.sh.j2 @@ -8,7 +8,7 @@ {% if hostvars[h].borgbackup_required | default(True) %} # Host: {{ h }} {% for b in hostvars[h].borgbackup_servers %} - {% if hostvars[h].borgbackup_managementstation is defined and inventory_hostname == hostvars[h].borgbackup_managementstation %} + {% if hostvars[h].borgbackup_management_station is defined and inventory_hostname == hostvars[h].borgbackup_management_station %} export BORG_PASSPHRASE={{ hostvars[h].borgbackup_passphrase }} REPOSITORY={{ b.user }}@{{ b.fqdn }}:{{ b.home }}{{ b.pool }}/{{ h }} /usr/local/bin/borg prune -v $REPOSITORY {{ b.options }} -H {{ hostvars[h].borgbackup_retention.hourly }} -d {{ hostvars[h].borgbackup_retention.daily }} -w {{ hostvars[h].borgbackup_retention.weekly }} -m {{ hostvars[h].borgbackup_retention.monthly }} -y {{ hostvars[h].borgbackup_retention.yearly }}