Added export variables to prepare for calling BorgBackup

This commit is contained in:
Asif Bacchus 2018-09-04 20:38:09 -06:00
parent ad972f1c71
commit 8d7bbfcf80
1 changed files with 11 additions and 0 deletions

View File

@ -202,5 +202,16 @@ else
exit 102
fi
## Ready for Borg
echo -e "\e[1;39m[`date +%Y-%m-%d` `date +%H:%M:%S`] Pre-backup tasks" \
"completed... calling BorgBackup" >> $logFile
## Generate and export variables required for BorgBackup
export BORG_BASE_DIR="$borgBaseDir"
export BORG_REMOTE_PATH="$borgRemotePath"
export BORG_RSH="ssh -i $borgRemoteSSHKeyfile"
export BORG_REPO="$(head -1 $borgDetails)"
export BORG_PASSPHRASE="$(tail -1 $borgDetails)"
# Gracefully exit
exit 0