diff --git a/src/Service/BackupService.php b/src/Service/BackupService.php index 3493259..57b8724 100644 --- a/src/Service/BackupService.php +++ b/src/Service/BackupService.php @@ -42,8 +42,10 @@ class BackupService $db, ]); + $stream = fopen($fileName, 'r'); + $process->setEnv(['MYSQL_PWD' => $this->credentials->getPassword()]); - $process->setInput(file_get_contents($fileName)); + $process->setInput($stream); $process->run(); } } \ No newline at end of file