diff --git a/docker-volume-recover.sh b/docker-volume-recover.sh index 55c47f7..bbee145 100644 --- a/docker-volume-recover.sh +++ b/docker-volume-recover.sh @@ -20,7 +20,7 @@ fi if [ -f "$backup_sql" ]; then echo "recover mysql dump" - cat $backup_sql | docker exec -i "$container" '/usr/bin/mysql -u root --password="'$mysql_root_password'" "'$database'"' + cat $backup_sql | docker exec -i "$container" /usr/bin/mysql -u root --password="$mysql_root_password" $database exit 0 else if [ -d "$backup_files" ]; then