fix selecting a backup container

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2022-02-16 15:05:04 +01:00
parent 8a6de8f63c
commit 8f1fcde006
4 changed files with 16 additions and 16 deletions

View file

@ -9,7 +9,10 @@ if [ -z "$BORG_PASSWORD" ]; then
exit 1
fi
export BORG_PASSWORD
# Export defaults
export BORG_PASSPHRASE="$BORG_PASSWORD"
export BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes
export BORG_RELOCATED_REPO_ACCESS_IS_OK=yes
# Validate BORG_MODE
if [ "$BORG_MODE" != backup ] && [ "$BORG_MODE" != restore ] && [ "$BORG_MODE" != check ]; then