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:
parent
bea177dd34
commit
f72411e9d7
2 changed files with 3 additions and 3 deletions
|
@ -103,7 +103,7 @@ START DOING STUFF INSIDE THE RESTIC REPO FOR LOOP
|
||||||
echo "init $BACKUP_NAME"
|
echo "init $BACKUP_NAME"
|
||||||
restic {{ restic_archiver__default_opt }} forget {{ retention_pattern(repo) }}
|
restic {{ restic_archiver__default_opt }} forget {{ retention_pattern(repo) }}
|
||||||
echo "restic forget done"
|
echo "restic forget done"
|
||||||
{%- if repo.prune|default(restic_archiver__prune) %}
|
{% if repo.prune|default(restic_archiver__prune) %}
|
||||||
restic {{ restic_archiver__default_opt }} prune
|
restic {{ restic_archiver__default_opt }} prune
|
||||||
echo "restic prune done"
|
echo "restic prune done"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -176,7 +176,7 @@ EOT
|
||||||
BACKUP_NAME="{{ repo.name }}_archive"
|
BACKUP_NAME="{{ repo.name }}_archive"
|
||||||
|
|
||||||
restic {{ restic_archiver__default_opt }} forget {{ retention_archive_pattern(repo) }}
|
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
|
restic {{ restic_archiver__default_opt }} prune
|
||||||
echo "restic ARCHIVE prune done"
|
echo "restic ARCHIVE prune done"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -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'
|
playbook_version_path: 'role-restic_archiver_roles-ansible_github.com.version'
|
||||||
|
|
Loading…
Reference in a new issue