1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_restic_archiver.git synced 2024-08-16 10:09:49 +02:00

improve pruning

This commit is contained in:
L3D 2022-03-11 14:07:28 +01:00
parent bea177dd34
commit f72411e9d7
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 3 additions and 3 deletions

View file

@ -103,7 +103,7 @@ START DOING STUFF INSIDE THE RESTIC REPO FOR LOOP
echo "init $BACKUP_NAME"
restic {{ restic_archiver__default_opt }} forget {{ retention_pattern(repo) }}
echo "restic forget done"
{%- if repo.prune|default(restic_archiver__prune) %}
{% if repo.prune|default(restic_archiver__prune) %}
restic {{ restic_archiver__default_opt }} prune
echo "restic prune done"
{% endif %}
@ -176,7 +176,7 @@ EOT
BACKUP_NAME="{{ repo.name }}_archive"
restic {{ restic_archiver__default_opt }} forget {{ retention_archive_pattern(repo) }}
{%- if repo.prune|default(restic_archiver__prune) %}
{% if repo.prune|default(restic_archiver__prune) %}
restic {{ restic_archiver__default_opt }} prune
echo "restic ARCHIVE prune done"
{% endif %}

View file

@ -1,3 +1,3 @@
---
playbook_version_number: 52 # should be int
playbook_version_number: 53 # should be int
playbook_version_path: 'role-restic_archiver_roles-ansible_github.com.version'