diff --git a/backup.sh b/backup.sh index a3b8754..aaa2f8b 100755 --- a/backup.sh +++ b/backup.sh @@ -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