mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
FIX: mysql dump
This commit is contained in:
parent
cd2e8eb836
commit
3d58ada608
@ -16,15 +16,13 @@ class DumpMySQL extends BuildTask
|
||||
{
|
||||
$cfg = DB::getConfig();
|
||||
|
||||
/*try {
|
||||
try {
|
||||
ob_clean();
|
||||
} catch (Exception $e) {
|
||||
}*/
|
||||
|
||||
//header('Content-Disposition: attachment; filename="backup-'.date('d-m-Y').'.sql"');
|
||||
$dump = exec('mysqldump -u '.$cfg['username'].' --password="'.$cfg['password'].'" '.$cfg['database']);
|
||||
var_dump($dump);
|
||||
}
|
||||
|
||||
header('Content-Disposition: attachment; filename="backup-'.date('d-m-Y').'.sql"');
|
||||
passthru('mysqldump -u '.$cfg['username'].' --password="'.$cfg['password'].'" '.$cfg['database']);
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user