Set default params and cleaned up comments for the same
This commit is contained in:
parent
3733942596
commit
bd22db85df
13
backup.sh
13
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'
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user