Skip to content
Snippets Groups Projects
Verified Commit 762ecf80 authored by Evangelos Foutras's avatar Evangelos Foutras :smiley_cat:
Browse files

borg_client: remove "compact_after_prune" toggle

rsync.net has upgraded to borg 1.2 and we can now run borg compact on
both rsync.net and the Hetzner storage box.

Fixes: 17927c9a ("borg_client: run compact after pruning on borg 1.2")
parent 6c8de85e
No related branches found
No related tags found
No related merge requests found
Pipeline #24106 passed
......@@ -3,9 +3,7 @@ backup_hosts:
dir: "~/repo"
suffix: ""
borg_cmd: "borg"
compact_after_prune: true
- host: "ssh://zh1905@zh1905.rsync.net:22"
dir: "~/backup/{{ inventory_hostname }}"
suffix: "-offsite"
borg_cmd: "borg --remote-path=borg1"
compact_after_prune: false # not upgraded to borg 1.2 yet
......@@ -91,6 +91,4 @@ fi
{{ item['borg_cmd'] }} prune -v {{ item['host'] }}/{{ item['dir'] }} --keep-daily=7 --keep-weekly=4 --keep-monthly=6
{% if item['compact_after_prune'] %}
{{ item['borg_cmd'] }} compact -v {{ item['host'] }}/{{ item['dir'] }}
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment