diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-07-12 10:59:10 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-07-12 10:59:10 -0300 |
commit | 227c37abe647ba9d9eb45346a12794452f18c27a (patch) | |
tree | 9dad5a19371a5455421712bba617f4258276459a | |
parent | 69bd76b9e1336fe3301a383e5982559aaf86c8cb (diff) | |
download | borger-227c37abe647ba9d9eb45346a12794452f18c27a.tar.gz borger-227c37abe647ba9d9eb45346a12794452f18c27a.tar.bz2 |
Fix: use --glob-archives instead of the deprecated --prefix option
-rwxr-xr-x | borger | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -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=$? |