From 3fc85fb037fea317e4b10eca377fa19cc08328d1 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 6 Sep 2018 02:01:53 -0600 Subject: [PATCH] Updated sqlDumpFile name generation section logging params --- root/scripts/borgbackup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/root/scripts/borgbackup.sh b/root/scripts/borgbackup.sh index 718da01..8cab7a9 100755 --- a/root/scripts/borgbackup.sh +++ b/root/scripts/borgbackup.sh @@ -232,10 +232,11 @@ if [ "$checkResult" = "1" ]; then fi ## Create unique filename for sqlDump file -sqlDumpFile="backup_${DBNAME}_`date +%Y%m%d_%H%M%S`.sql" +sqlDumpFile="backup_`date +%Y%m%d_%H%M%S`.sql" echo -e "\e[0m[`date +%Y-%m-%d` `date +%H:%M:%S`] mysql dump file will be" \ "stored at:" >> $logFile -echo -e "\e[0;33m$sqlDumpDir/$sqlDumpFile\e[0m" >> $logFile +echo -e "\e[0;33m$sqlDumpDir/$sqlDumpFile\e[0m" | tee -a $logFileVerbose \ + $logFileNormal > /dev/null ## Find 503 error page and copy to NGINX webroot ## File must be in the same location as this script