From ff9f970f3954adf3a14cf035be5d2ea679c835ef Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sun, 19 May 2019 01:00:27 -0600 Subject: [PATCH] update sqldump name generation --- backup.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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