From 72d14ba75b1a7b83f7ee0e2cd3f26f45881b6806 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 19 Oct 2018 21:51:30 -0600 Subject: [PATCH] Removed NC specific script parameters --- root/scripts/backup.sh | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/root/scripts/backup.sh b/root/scripts/backup.sh index ccf34a5..3c4ffc0 100644 --- a/root/scripts/backup.sh +++ b/root/scripts/backup.sh @@ -276,20 +276,12 @@ if [ -n "$1" ] && [[ ! "$1" =~ ^- ]]; then fi # use GetOpts to process parameters -while getopts ':l:n:u:v5:w:s:b:d:' PARAMS; do +while getopts ':l:v5:w:b:' PARAMS; do case "$PARAMS" in l) # use provided location for logFile logFile="${OPTARG}" ;; - n) - # NextCloud webroot - ncRoot="${OPTARG%/}" - ;; - u) - # webuser - webUser="${OPTARG}" - ;; v) # verbose output from Borg borgCreateParams='--list --stats' @@ -304,18 +296,10 @@ while getopts ':l:n:u:v5:w:s:b:d:' PARAMS; do # path to webserver webroot to copy 503 error page webroot="${OPTARG%/}" ;; - s) - # path to file containing SQL login details - sqlDetails="${OPTARG%/}" - ;; b) # path to file containing borgbackup settings and details borgDetails="${OPTARG%/}" ;; - d) - # nextcloud data directory - ncDataDir="${OPTARG%/}" - ;; ?) # unrecognized parameters trigger scriptHelp scriptHelp