]> gitweb.fluxo.info Git - puppet-backup.git/commitdiff
Fix: borg: use --glob-archives instead of --prefix
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 26 Dec 2023 16:49:01 +0000 (13:49 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 26 Dec 2023 16:49:01 +0000 (13:49 -0300)
templates/borg.sh.erb

index 736ad4f0d34ed54d6dd6a5144d2b83b134cb3fd7..4c799761962c1d0235ef8669487a4d17635ecfe8 100644 (file)
@@ -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 %>  \