Fix database name
This commit is contained in:
parent
8c947cd18d
commit
e3618921c4
|
@ -67,7 +67,7 @@ function backup_database_local {
|
||||||
if ! grep -q "# Backup the ${database_name} database" $backup_databases_script; then
|
if ! grep -q "# Backup the ${database_name} database" $backup_databases_script; then
|
||||||
echo "# Backup the ${database_name} database" >> $backup_databases_script
|
echo "# Backup the ${database_name} database" >> $backup_databases_script
|
||||||
echo "TEMPFILE=/root/${database_name}.sql" >> $backup_databases_script
|
echo "TEMPFILE=/root/${database_name}.sql" >> $backup_databases_script
|
||||||
echo 'DAILYFILE=/var/backups/${database_name}_daily.sql' >> $backup_databases_script
|
echo "DAILYFILE=/var/backups/${database_name}_daily.sql" >> $backup_databases_script
|
||||||
echo "mysqldump --password=\"\$MYSQL_PASSWORD\" ${database_name} > \$TEMPFILE" >> $backup_databases_script
|
echo "mysqldump --password=\"\$MYSQL_PASSWORD\" ${database_name} > \$TEMPFILE" >> $backup_databases_script
|
||||||
echo 'FILESIZE=$(stat -c%s $TEMPFILE)' >> $backup_databases_script
|
echo 'FILESIZE=$(stat -c%s $TEMPFILE)' >> $backup_databases_script
|
||||||
echo 'if [ "$FILESIZE" -eq "0" ]; then' >> $backup_databases_script
|
echo 'if [ "$FILESIZE" -eq "0" ]; then' >> $backup_databases_script
|
||||||
|
|
Loading…
Reference in New Issue