Fix database name
This commit is contained in:
parent
0ee038545f
commit
a5a89f34c7
|
@ -52,7 +52,7 @@ function backup_database_local {
|
|||
if ! grep -q "# Backup the ${database_name} database" $backup_databases_script; then
|
||||
echo "# Backup the ${database_name} database" >> $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 'FILESIZE=$(stat -c%s $TEMPFILE)' >> $backup_databases_script
|
||||
echo 'if [ "$FILESIZE" -eq "0" ]; then' >> $backup_databases_script
|
||||
|
|
Loading…
Reference in New Issue