diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2023-12-26 13:49:01 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2023-12-26 13:49:01 -0300 |
commit | aecb16575b6830b50e0873054987ebdf453df6cb (patch) | |
tree | fcba80525846f2e90ed3feff720928874e6d7b90 | |
parent | 919754bd0008865ba52460be93f5799c2045a8b1 (diff) | |
download | puppet-backup-aecb16575b6830b50e0873054987ebdf453df6cb.tar.gz puppet-backup-aecb16575b6830b50e0873054987ebdf453df6cb.tar.bz2 |
Fix: borg: use --glob-archives instead of --prefix
-rw-r--r-- | templates/borg.sh.erb | 4 |
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 %> \ |