fix: continue after failure

This commit is contained in:
f 2023-05-20 13:49:48 -03:00
parent 5b120ed353
commit 1ec77166f8

View file

@ -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}"