update sqldump name generation

This commit is contained in:
Asif Bacchus 2019-05-19 01:00:27 -06:00
parent b87a8e7d7e
commit ff9f970f39

View File

@ -475,11 +475,13 @@ echo -e "${info}[$(stamp)] -- [INFO] Log file located at ${lit}${logFile}" \
export logFile="$logFile"
### Create sqlDump temporary directory and sqlDumpFile name
### Create sqlDump temporary directory and sqlDumpFilenames
sqlDumpDir=$( mktemp -d )
sqlDumpFile="backup-$(date +%Y%m%d_%H%M%S).sql"
echo -e "${info}[$(stamp)] -- [INFO] mySQL dump file will be stored" \
"at: ${lit}${sqlDumpDir}/${sqlDumpFile}${normal}" >> "$logFile"
sqlDump_ccnet-db="backup-$(date +%Y%m%d_%H%M%S)_ccnet-db.sql"
sqlDump_seafile-db="backup-$(date +%Y%m%d_%H%M%S)_seafile-db.sql"
sqlDump_seahub-db="backup-$(date +%Y%m%d_%H%M%S)_seahub-db.sql"
echo -e "${info}[$(stamp)] -- [INFO] mySQL dump files will be temporarily" \
"stored at: ${lit}${sqlDumpDir}/${sqlDumpFile}${normal}" >> "$logFile"
### 503 error page: If you don't plan on using the auto-copied 503 then comment