FIX: mysql dump

This commit is contained in:
Tony Air 2022-02-09 22:48:10 +02:00
parent 31b890cd85
commit c0087a6357
1 changed files with 5 additions and 1 deletions

View File

@ -16,11 +16,15 @@ class DumpMySQL extends BuildTask
{
$cfg = DB::getConfig();
ob_clean();
try {
ob_clean();
} catch (Exception $e) {
}
header('Content-Disposition: attachment; filename="backup-'.date('d-m-Y').'.sql"');
passthru('mysqldump -u '.$cfg['username'].' --password="'.$cfg['password'].'" '.$cfg['database']);
ob_end_clean();
exit(0);
}
}