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
c0087a6357
commit
f943144b5c
@ -22,9 +22,9 @@ class DumpMySQL extends BuildTask
|
||||
}
|
||||
|
||||
header('Content-Disposition: attachment; filename="backup-'.date('d-m-Y').'.sql"');
|
||||
passthru('mysqldump -u '.$cfg['username'].' --password="'.$cfg['password'].'" '.$cfg['database']);
|
||||
$dump = passthru('mysqldump -u '.$cfg['username'].' --password="'.$cfg['password'].'" '.$cfg['database'], true);
|
||||
var_dump($dump);
|
||||
|
||||
ob_end_clean();
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user