From aecb16575b6830b50e0873054987ebdf453df6cb Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 26 Dec 2023 13:49:01 -0300 Subject: Fix: borg: use --glob-archives instead of --prefix --- templates/borg.sh.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 %> \ -- cgit v1.2.3