From 8b86294936b02b6fdbc1b46c7fe2e461ab9c16ec Mon Sep 17 00:00:00 2001 From: Simon L Date: Thu, 12 Jan 2023 23:56:41 +0100 Subject: [PATCH] borg - substitute prefix with glob-archives Signed-off-by: Simon L --- Containers/borgbackup/backupscript.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Containers/borgbackup/backupscript.sh b/Containers/borgbackup/backupscript.sh index 1126278f..c617105f 100644 --- a/Containers/borgbackup/backupscript.sh +++ b/Containers/borgbackup/backupscript.sh @@ -151,7 +151,7 @@ if [ "$BORG_MODE" = backup ]; then # Prune archives echo "Pruning the archives..." - if ! borg prune --prefix '*_*-nextcloud-aio' "${BORG_PRUNE_OPTS[@]}"; then + if ! borg prune --glob-archives '*_*-nextcloud-aio' "${BORG_PRUNE_OPTS[@]}"; then echo "Failed to prune archives!" exit 1 fi @@ -182,7 +182,7 @@ if [ "$BORG_MODE" = backup ]; then exit 1 fi echo "Pruning additional volumes..." - if ! borg prune --prefix '*_*-additional-docker-volumes' "${BORG_PRUNE_OPTS[@]}"; then + if ! borg prune --glob-archives '*_*-additional-docker-volumes' "${BORG_PRUNE_OPTS[@]}"; then echo "Failed to prune additional docker-volumes archives!" exit 1 fi @@ -212,7 +212,7 @@ if [ "$BORG_MODE" = backup ]; then exit 1 fi echo "Pruning additional host mounts..." - if ! borg prune --prefix '*_*-additional-host-mounts' "${BORG_PRUNE_OPTS[@]}"; then + if ! borg prune --glob-archives '*_*-additional-host-mounts' "${BORG_PRUNE_OPTS[@]}"; then echo "Failed to prune additional host-mount archives!" exit 1 fi