BackupService: don't add use db to backup

This commit is contained in:
Tim 2021-12-29 20:47:00 +01:00
parent 7aba36e7bb
commit 921da75891

View File

@ -21,8 +21,8 @@ class BackupService
$filesystem = new Filesystem(); $filesystem = new Filesystem();
$process = new Process([ $process = new Process([
'mysqldump', 'mysqldump',
'-B', $db,
'-u', $this->credentials->getUser(), '-u', $this->credentials->getUser(),
$db,
]); ]);
$process->setEnv(['MYSQL_PWD' => $this->credentials->getPassword()]); $process->setEnv(['MYSQL_PWD' => $this->credentials->getPassword()]);
$process->run(); $process->run();