From 9b6e27bbd3d176acd1353e23c40ee0ff61513926 Mon Sep 17 00:00:00 2001 From: Robin Meier Date: Tue, 14 May 2024 22:30:12 +0200 Subject: [PATCH] Fix bug with remote backup script --- backup.sh | 2 +- backup_remote.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index 96ce4cf..5747e3d 100755 --- a/backup.sh +++ b/backup.sh @@ -52,7 +52,7 @@ fi # Run remote disk backup if set remote_exit=0 -if [[ -n $EXTERNAL_DISK_BACKUP_ENV_FILE ]]; then +if [[ -n $REMOTE_BACKUP_ENV_FILE ]]; then ${script_dir}/backup_remote.sh &>> $logfile remote_exit=$? fi diff --git a/backup_remote.sh b/backup_remote.sh index f78fde5..0b44311 100755 --- a/backup_remote.sh +++ b/backup_remote.sh @@ -25,7 +25,7 @@ if [[ -z "$REMOTE_BACKUP_ENV_FILE" ]]; then fi set -o allexport -source $EXTERNAL_DISK_BACKUP_ENV_FILE +source $REMOTE_BACKUP_ENV_FILE set +o allexport log "Remote Backup Started"