From 1ec77166f8220515ecd692fda11a2c5cf09e690c Mon Sep 17 00:00:00 2001 From: f Date: Sat, 20 May 2023 13:49:48 -0300 Subject: [PATCH] fix: continue after failure --- backup.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index 3988909..0d76055 100755 --- a/backup.sh +++ b/backup.sh @@ -1,5 +1,4 @@ #!/bin/sh -set -e # Password can't be empty test -n "${BORG_PASSPHRASE}" @@ -36,7 +35,7 @@ for signal in TERM QUIT HUP EXIT INT KILL; do done # It'll fail the second time -borg init --encryption=repokey "${SSH_ALIAS}:${DEST}" || : +borg init --encryption=repokey "${SSH_ALIAS}:${DEST}" borg create -v --stats "${SSH_ALIAS}:${DEST}::${DATE}" "${ORIG}" borg prune -v --stats --keep-daily ${KEEP} "${SSH_ALIAS}:${DEST}"