diff --git a/backup.sh b/backup.sh index 47fd0b8..db484a0 100755 --- a/backup.sh +++ b/backup.sh @@ -132,13 +132,16 @@ function cleanup { scriptPath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" scriptName="$( basename ${0} )" logFile="$scriptPath/${scriptName%.*}.log" +# set err503File default to '503.html' in same directory as script +err503File="$scriptPath/503.html" +# set borg parameters to 'normal' verbosity +borgCreateParams='--stats' +borgPruneParams='--list' -# set script parameters to null and initialize array variables + +### Set script parameters to null and initialize array variables unset PARAMS -unset borgCreateParams -unset borgPruneParams unset sqlDumpDir -unset err503File unset webroot errorExplain=() exitWarn=() @@ -174,7 +177,7 @@ while getopts ':l:nv5:r:' PARAMS; do logFile="${OPTARG}" ;; n) - # normal output from Borg + # normal output from Borg (default) borgCreateParams='--stats' borgPruneParams='--list' ;;