From bd22db85dfa75035d0a52ed84920f489edbdc543 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sun, 30 Sep 2018 20:06:25 -0600 Subject: [PATCH] Set default params and cleaned up comments for the same --- backup.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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' ;;