borg-extract-archiv.sh,borg-list-backups.sh: some minor fixes in case og localhost.

This commit is contained in:
2025-01-01 13:30:26 +01:00
parent 7f1114500a
commit 957993aff5
2 changed files with 48 additions and 40 deletions

View File

@@ -228,7 +228,9 @@ DEFAULT_BORG_RSH='ssh -i /root/.ssh/id_ed25519-borg-backup'
if [[ -f "$conf_file" ]]; then
source "$conf_file"
else
fatal "No configuration file '$conf_file' present!"
if [[ -z "${BORG_HOST}" ]] || [[ -z "${BORG_REPO}" ]] || [[ -z "${BORG_PASSPHRASE}" ]] ; then
fatal "No configuration file '$conf_file' present!"
fi
fi