|
@@ -52,7 +52,7 @@ function backup_database_local {
|
52
|
52
|
if ! grep -q "# Backup the ${database_name} database" $backup_databases_script; then
|
53
|
53
|
echo "# Backup the ${database_name} database" >> $backup_databases_script
|
54
|
54
|
echo "TEMPFILE=/root/${database_name}.sql" >> $backup_databases_script
|
55
|
|
- echo 'DAILYFILE=/var/backups/${database_name}_daily.sql' >> $backup_databases_script
|
|
55
|
+ echo "DAILYFILE=/var/backups/${database_name}_daily.sql" >> $backup_databases_script
|
56
|
56
|
echo "mysqldump --password=\"\$MYSQL_PASSWORD\" ${database_name} > \$TEMPFILE" >> $backup_databases_script
|
57
|
57
|
echo 'FILESIZE=$(stat -c%s $TEMPFILE)' >> $backup_databases_script
|
58
|
58
|
echo 'if [ "$FILESIZE" -eq "0" ]; then' >> $backup_databases_script
|