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" \