From: Silvio Rhatto Date: Fri, 12 Jul 2024 13:59:10 +0000 (-0300) Subject: Fix: use --glob-archives instead of the deprecated --prefix option X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=227c37abe647ba9d9eb45346a12794452f18c27a;p=borger.git Fix: use --glob-archives instead of the deprecated --prefix option --- diff --git a/borger b/borger index 7e35c38..899b738 100755 --- a/borger +++ b/borger @@ -180,13 +180,16 @@ function borger_create { # one specific archive and not apply to archives also. function borger_prune { info "Pruning repository..." - borg prune \ - --list \ - --prefix "${PLACEHOLDER}-" \ - --show-rc \ - --keep-daily $KEEPDAILY \ - --keep-weekly $KEEPWEEKLY \ - --keep-monthly $KEEPMONTHLY \ + borg prune \ + --list \ + # Option "--prefix" has been deprecated. + # Use "--glob-archives 'yourprefix*'" (-a) instead. + #--prefix "${PLACEHOLDER}-" \ + --glob-archives ${PLACEHOLDER}'*' \ + --show-rc \ + --keep-daily $KEEPDAILY \ + --keep-weekly $KEEPWEEKLY \ + --keep-monthly $KEEPMONTHLY \ prune_exit=$?