|
|
|
@ -4,15 +4,15 @@
|
|
|
|
|
# SCRIPT PREP #
|
|
|
|
|
###############
|
|
|
|
|
|
|
|
|
|
# Source base directory of script and source variables
|
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
|
|
. "${SCRIPT_DIR}"/backupsVariables.sh
|
|
|
|
|
|
|
|
|
|
# Update restic
|
|
|
|
|
if [ $UPDATE = 'yes' ]; then
|
|
|
|
|
restic self-update
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Source base directory of script and source variables
|
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
|
|
. "${SCRIPT_DIR}"/variables.sh
|
|
|
|
|
|
|
|
|
|
############################
|
|
|
|
|
# LOGGING & ERROR HANDLING #
|
|
|
|
|
############################
|
|
|
|
@ -65,7 +65,7 @@ fi
|
|
|
|
|
|
|
|
|
|
# Overwrite LAN restic variables with the AWS restic variables
|
|
|
|
|
if [ $LAN_AND_AWS_RESTIC = 'yes' ]; then
|
|
|
|
|
. "${SCRIPT_DIR}"/variablesAWS.sh
|
|
|
|
|
. "${SCRIPT_DIR}"/backupsVariablesAWS.sh
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# If selected, run a remote restic backup
|
|
|
|
|