Skip to content

Commit 9a32c86

Browse files
pq2enoch85szaimen
authored
Fix deprecation warning (#2743)
* Fix deprecation warning Signed-off-by: pq2 <[email protected]> * remove unnecessary asterisk Co-authored-by: Simon L. <[email protected]> Signed-off-by: pq2 <[email protected]> * Update not-supported/borgbackup.sh Co-authored-by: Simon L. <[email protected]> Signed-off-by: pq2 <[email protected]> * Update not-supported/borgbackup.sh Co-authored-by: Simon L. <[email protected]> Signed-off-by: pq2 <[email protected]> * Update not-supported/borgbackup.sh Co-authored-by: Simon L. <[email protected]> Signed-off-by: pq2 <[email protected]> --------- Signed-off-by: pq2 <[email protected]> Co-authored-by: Daniel Hansson <[email protected]> Co-authored-by: Simon L. <[email protected]>
1 parent 840247a commit 9a32c86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

not-supported/borgbackup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ Please don't restart or shutdown your server until then!"
445445

446446
# Prune system archives
447447
inform_user "$ICyan" "Pruning the system archives..."
448-
if ! borg prune --prefix '*_*-NcVM-system-partition' "${BORG_PRUNE_OPTS[@]}"
448+
if ! borg prune --glob-archives '*_*-NcVM-system-partition' "${BORG_PRUNE_OPTS[@]}"
449449
then
450450
re_rename_snapshot
451451
send_error_mail "Some errors were reported by the prune system command."
@@ -464,7 +464,7 @@ Please don't restart or shutdown your server until then!"
464464

465465
# Prune boot archives
466466
inform_user "$ICyan" "Pruning the boot archives..."
467-
if ! borg prune --prefix '*_*-NcVM-boot-partition' "${BORG_PRUNE_OPTS[@]}"
467+
if ! borg prune --glob-archives '*_*-NcVM-boot-partition' "${BORG_PRUNE_OPTS[@]}"
468468
then
469469
re_rename_snapshot
470470
send_error_mail "Some errors were reported by the prune boot command."
@@ -485,7 +485,7 @@ Please don't restart or shutdown your server until then!"
485485
fi
486486
# Prune ncdata archives
487487
inform_user "$ICyan" "Pruning the ncdata archives..."
488-
if ! borg prune --prefix '*_*-NcVM-ncdata-partition' "${BORG_PRUNE_OPTS[@]}"
488+
if ! borg prune --glob-archives '*_*-NcVM-ncdata-partition' "${BORG_PRUNE_OPTS[@]}"
489489
then
490490
re_rename_snapshot
491491
send_error_mail "Some errors were reported by the prune ncdata command."
@@ -534,7 +534,7 @@ Please don't restart or shutdown your server until then!"
534534

535535
# Prune archives
536536
inform_user "$ICyan" "Pruning the $DIRECTORY_NAME archives..."
537-
if ! borg prune --prefix "*_*-NcVM-$DIRECTORY_NAME-directory" "${BORG_PRUNE_OPTS[@]}"
537+
if ! borg prune --glob-archives "*_*-NcVM-$DIRECTORY_NAME-directory" "${BORG_PRUNE_OPTS[@]}"
538538
then
539539
re_rename_snapshot
540540
send_error_mail "Some errors were reported by the prune $DIRECTORY_NAME command."

0 commit comments

Comments
 (0)