From fabea27ffda771c810d4e0ffa9af3f64b3f045d3 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 23 May 2019 20:57:05 -0600 Subject: [PATCH] set default variable values --- backup_new.sh | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/backup_new.sh b/backup_new.sh index 358063c..9846195 100755 --- a/backup_new.sh +++ b/backup_new.sh @@ -51,20 +51,31 @@ stamp () { ### default variable values +## script related # store logfile in the same directory as this script file using the same file # name as the script but with the extension '.log' scriptPath="$( CDPATH= cd -- "$( dirname -- "$0" )" && pwd -P )" scriptName="$( basename "$0" )" logFile="$scriptPath/${scriptName%.*}.log" +# borg output verbosity -- normal +borgCreateParams='--stats' +borgPruneParams='--list' +detailsFile="$scriptPath/seafbackup.details" -# seafile service +# 503 related +err503Path="$scriptPath/503_backup.html" +err503File="${err503Path##*/}" +webroot="/usr/share/nginx/html" + +# seafile related offlineBackup=0 seafSvc="seafile.service" seafHub="seahub.service" - -# seafile directories +seafUser="seafile" seafDir="/opt/seafile" -dataDir="/var/seafile" +seafData="/var/seafile" + + ### start logging printf "${mag}[%s] --- Start %s execution ---${norm}\n" \