mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
Do not break the borg lock automatically
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
d15e2d7637
commit
3358f53b84
1 changed files with 0 additions and 9 deletions
|
|
@ -37,15 +37,6 @@ if [ "$BORG_MODE" != backup ] && [ "$BORG_MODE" != test ] && ! [ -f "$BORG_BACKU
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
# Create lockfile
|
||||||
if [ "$BORG_MODE" = backup ] || [ "$BORG_MODE" = restore ]; then
|
if [ "$BORG_MODE" = backup ] || [ "$BORG_MODE" = restore ]; then
|
||||||
touch "/nextcloud_aio_volumes/nextcloud_aio_database_dump/backup-is-running"
|
touch "/nextcloud_aio_volumes/nextcloud_aio_database_dump/backup-is-running"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue