From 296e69f4a081c0fc6bf187630a2f22b33086a44e Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 19 Oct 2018 21:56:16 -0600 Subject: [PATCH] Added mailcow specific parameters --- root/scripts/backup.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/root/scripts/backup.sh b/root/scripts/backup.sh index 3c4ffc0..41ba860 100644 --- a/root/scripts/backup.sh +++ b/root/scripts/backup.sh @@ -276,7 +276,7 @@ if [ -n "$1" ] && [[ ! "$1" =~ ^- ]]; then fi # use GetOpts to process parameters -while getopts ':l:v5:w:b:' PARAMS; do +while getopts ':l:v5:w:b:m:d:1:2:' PARAMS; do case "$PARAMS" in l) # use provided location for logFile @@ -300,6 +300,22 @@ while getopts ':l:v5:w:b:' PARAMS; do # path to file containing borgbackup settings and details borgDetails="${OPTARG%/}" ;; + m) + # name of mailcow configuration file + mailcowConfigFile="${OPTARG}" + ;; + d) + # name of docker-compose configuration file + dockerComposeFile="${OPTARG}" + ;; + 1) + # docker-compose stop timeout in seconds + dockerStopTimeout="${OPTARG}" + ;; + 2) + # docker-compose start timeout in seconds + dockerStartTimeout="${OPTARG}" + ;; ?) # unrecognized parameters trigger scriptHelp scriptHelp