From 3358f53b84a05b4598fdcb66ec395149d01f1c8f Mon Sep 17 00:00:00 2001 From: szaimen Date: Wed, 1 Jun 2022 15:10:39 +0200 Subject: [PATCH] Do not break the borg lock automatically Signed-off-by: szaimen --- Containers/borgbackup/backupscript.sh | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Containers/borgbackup/backupscript.sh b/Containers/borgbackup/backupscript.sh index 4d6fbd3c..ecbd201f 100644 --- a/Containers/borgbackup/backupscript.sh +++ b/Containers/borgbackup/backupscript.sh @@ -37,15 +37,6 @@ if [ "$BORG_MODE" != backup ] && [ "$BORG_MODE" != test ] && ! [ -f "$BORG_BACKU exit 1 fi -# Break the borg lock if it exists -if [ -f "$BORG_BACKUP_DIRECTORY/lock.roster" ]; then - echo "Breaking the borg lock..." - if ! borg break-lock "$BORG_BACKUP_DIRECTORY"; then - echo "Could not break the borg lock!" - exit 1 - fi -fi - # Create lockfile if [ "$BORG_MODE" = backup ] || [ "$BORG_MODE" = restore ]; then touch "/nextcloud_aio_volumes/nextcloud_aio_database_dump/backup-is-running"