Compare commits
No commits in common. "ed62bb1e38e386adbd60ad3008c7855c8892d0b8" and "8e30cb40489a1ffcba8b97298777924c536319be" have entirely different histories.
ed62bb1e38
...
8e30cb4048
|
@ -1,9 +1,9 @@
|
|||
# Location of your script's log file, -l parameter
|
||||
LogFile = /path/to/your/seafbackup.log
|
||||
LogFile = /path/to/your/backup.log
|
||||
|
||||
# Format of logrotate archives for your script. Example assumes compression and
|
||||
# extension preservation
|
||||
Archive = /path/to/your/seafbackup.log.?.gz
|
||||
Archive = /path/to/your/logfile.ext.?.gz
|
||||
|
||||
# Apply the correct date/time filtering to match the format of the script's log
|
||||
# We are using a custom pl script in /etc/logwatch/scripts/shared/ You don't
|
|
@ -1,5 +1,5 @@
|
|||
# Name of the logfile group without any extension
|
||||
LogFile = seafbackup
|
||||
LogFile = backup
|
||||
|
||||
# Heading displayed on Logwatch's report for this service
|
||||
Title = "System and Seafile Backup"
|
|
@ -34,7 +34,7 @@ if ($detailLevel == 0) {
|
|||
elsif ($ThisLine =~ /\-- \[WARNING\] /) {
|
||||
$summaryWarn++;
|
||||
}
|
||||
elsif ($ThisLine =~ /All processes completed/) {
|
||||
elsif ($ThisLine =~ /All processes completed successfully/) {
|
||||
$summarySuccess++;
|
||||
}
|
||||
}
|
|
@ -165,8 +165,9 @@ scriptHelp () {
|
|||
|
||||
printf "More details and examples of script usage can be found in the "
|
||||
printf "repo wiki at\n"
|
||||
printf "${yellow}https://git.asifbacchus.app/BacchusGroup/seafileBackup"
|
||||
printf "${yellow}https://git.asifbacchus.app/asif/seafileBackup.git"
|
||||
printf "/wiki${norm}.\n"
|
||||
|
||||
printf "${cyan}%s${norm}\n\n" "--------------------------------------------------------------------------------"
|
||||
}
|
||||
|
||||
|
@ -229,7 +230,7 @@ scriptPath="$( CDPATH='' cd -- "$( dirname -- "$0" )" && pwd -P )"
|
|||
scriptName="$( basename "$0" )"
|
||||
logFile="$scriptPath/${scriptName%.*}.log"
|
||||
warnCount=0
|
||||
configDetails="$scriptPath/${scriptName%.*}.details"
|
||||
configDetails="$scriptPath/seafbackup.details"
|
||||
err503Copied=0
|
||||
sqlCopied=0
|
||||
includeXtra=0
|
||||
|
@ -536,7 +537,7 @@ if ! mysqldump -h"${sqlServer}" -u"${sqlUser}" -p"${sqlPass}" \
|
|||
--opt "${seahubDB_name}" > "${sqlDumpDir}/${sqlDump_seahub}" 2>> "$logFile"; then
|
||||
exitError 117 "Could not dump ${seahubDB_name} database"
|
||||
fi
|
||||
printf "${ok}[%s] -- [SUCCESS] Dumped SQL databases --${norm}\n" \
|
||||
printf "${ok}[%s] -- [SUCCESS] SQL databases dumped successfully --${norm}\n" \
|
||||
"$(stamp)" >> "$logFile"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue