Compare commits

...

2 commits

Author SHA1 Message Date
f 8b7dc40079 feat: output backup list
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-05-20 13:50:01 -03:00
f 1ec77166f8 fix: continue after failure 2023-05-20 13:49:48 -03:00

View file

@ -1,5 +1,4 @@
#!/bin/sh
set -e
# Password can't be empty
test -n "${BORG_PASSPHRASE}"
@ -36,8 +35,9 @@ 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}"
borg list ${KEEP} "${SSH_ALIAS}:${DEST}"
exit $?