# 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=$?