From 5064736e907c49da04c70b5333e449a6c3a75600 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sun, 30 Sep 2018 21:35:43 -0600 Subject: [PATCH] Added ncRoot references --- backup.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/backup.sh b/backup.sh index 5249d2e..d78d25e 100755 --- a/backup.sh +++ b/backup.sh @@ -143,6 +143,7 @@ unset PARAMS unset sqlDumpDir unset err503File unset webroot +unset ncRoot errorExplain=() exitWarn=() warningExplain=() @@ -178,9 +179,8 @@ while getopts ':l:nv5:r:' PARAMS; do logFile="${OPTARG}" ;; n) - # normal output from Borg (default) - borgCreateParams='--stats' - borgPruneParams='--list' + # NextCloud webroot + ncRoot="${OPTARG}" ;; v) # verbose output from Borg @@ -208,10 +208,10 @@ done if [ $(id -u) -ne 0 ]; then echo -e "${err}This script MUST be run as ROOT. Exiting.${normal}" exit 2 -elif [ -z "$webroot" ]; then - echo -e "\n${err}The NextCloud webroot must be specified (-r parameter)" \ - "${normal}\n" - exit 1 +#elif [ -z "$ncRoot" ]; then +# echo -e "\n${err}The NextCloud webroot must be specified (-n parameter)" \ +# "${normal}\n" +# exit 1 fi