From: Silvio Rhatto Date: Tue, 26 Dec 2023 16:49:01 +0000 (-0300) Subject: Fix: borg: use --glob-archives instead of --prefix X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=aecb16575b6830b50e0873054987ebdf453df6cb;p=puppet-backup.git Fix: borg: use --glob-archives instead of --prefix --- diff --git a/templates/borg.sh.erb b/templates/borg.sh.erb index 736ad4f..4c79976 100644 --- a/templates/borg.sh.erb +++ b/templates/borg.sh.erb @@ -82,9 +82,11 @@ info "Pruning repository..." # limit prune's operation to this machine's archives and not apply to # other machines' archives also: +# Warning: "--prefix" has been deprecated. Use "--glob-archives 'yourprefix*'" (-a) instead. +#--prefix '{hostname}-' \ borg prune \ --list \ - --prefix '{hostname}-' \ + --glob-archives '{hostname}-*' \ --show-rc \ --keep-daily <%= @keepdaily %> \ --keep-weekly <%= @keepweekly %> \