fixed backup creation

This commit is contained in:
konrad 2019-02-06 16:15:28 +01:00
parent 936f3b5fd3
commit a92823061b
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ for row in $(echo "${backup_hosts_file}" | jq -r '.[] | @base64'); do
# Do the backup
echo "Backing up $db_host"
mysqldump --all-databases -u ${db_user} -p${db_pw} -h ${db_host} --port ${db_port} -lock-tables=0 > $backup_folder/"$date"/${db_host}_all-databases.sql
mysqldump --all-databases -u ${db_user} -p${db_pw} -h ${db_host} --port ${db_port} --lock-tables=0 > $backup_folder/"$date"/${db_host}_all-databases.sql
if [ $? -eq 0 ]; then
echo "Success."
else