From 062ef420ec51c52c30429028883891d223c71434 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Wed, 24 Oct 2018 13:55:19 -0600 Subject: [PATCH] SQL dump output changed to actual file instead of dump to logfile! --- root/scripts/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/scripts/backup.sh b/root/scripts/backup.sh index 36208e5..954b3de 100644 --- a/root/scripts/backup.sh +++ b/root/scripts/backup.sh @@ -547,7 +547,7 @@ fi ### Dump SQL echo -e "${op}${stamp} Dumping mailcow SQL database...${normal}" >> "$logFile" -docker-compose exec mysql-mailcow mysqldump --default-character-set=utf8mb4 -u${DBUSER} -p${DBPASS} ${DBNAME} > "$sqlDumpDir/$sqlDumpFile" >> "$logFile" 2>&1 +docker-compose exec mysql-mailcow mysqldump --default-character-set=utf8mb4 -u${DBUSER} -p${DBPASS} ${DBNAME} > "$sqlDumpDir/$sqlDumpFile" 2>> "$logFile" checkResult=$(docker-compose exec mysql-mailcow echo "$?") # verify sql dump was successful if [ "$checkResult"=0 ]; then