update sqldump name generation
This commit is contained in:
parent
b87a8e7d7e
commit
ff9f970f39
10
backup.sh
10
backup.sh
@ -475,11 +475,13 @@ echo -e "${info}[$(stamp)] -- [INFO] Log file located at ${lit}${logFile}" \
|
|||||||
export logFile="$logFile"
|
export logFile="$logFile"
|
||||||
|
|
||||||
|
|
||||||
### Create sqlDump temporary directory and sqlDumpFile name
|
### Create sqlDump temporary directory and sqlDumpFilenames
|
||||||
sqlDumpDir=$( mktemp -d )
|
sqlDumpDir=$( mktemp -d )
|
||||||
sqlDumpFile="backup-$(date +%Y%m%d_%H%M%S).sql"
|
sqlDump_ccnet-db="backup-$(date +%Y%m%d_%H%M%S)_ccnet-db.sql"
|
||||||
echo -e "${info}[$(stamp)] -- [INFO] mySQL dump file will be stored" \
|
sqlDump_seafile-db="backup-$(date +%Y%m%d_%H%M%S)_seafile-db.sql"
|
||||||
"at: ${lit}${sqlDumpDir}/${sqlDumpFile}${normal}" >> "$logFile"
|
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
|
### 503 error page: If you don't plan on using the auto-copied 503 then comment
|
||||||
|
Loading…
Reference in New Issue
Block a user