aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-12-26 13:49:01 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-12-26 13:49:01 -0300
commitaecb16575b6830b50e0873054987ebdf453df6cb (patch)
treefcba80525846f2e90ed3feff720928874e6d7b90
parent919754bd0008865ba52460be93f5799c2045a8b1 (diff)
downloadpuppet-backup-develop.tar.gz
puppet-backup-develop.tar.bz2
Fix: borg: use --glob-archives instead of --prefixdevelop
-rw-r--r--templates/borg.sh.erb4
1 files changed, 3 insertions, 1 deletions
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 %> \