mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-24 14:31:42 +01:00
Fix creazione backup
This commit is contained in:
parent
daffd7b86d
commit
c04cfca70e
@ -80,7 +80,7 @@ class Backup
|
||||
/**
|
||||
* Effettua il backup giornaliero.
|
||||
*
|
||||
* @return null|bool
|
||||
* @return bool|null
|
||||
*/
|
||||
public static function daily()
|
||||
{
|
||||
@ -173,6 +173,7 @@ class Backup
|
||||
|
||||
$dump = new Mysqldump('mysql:host='.$config['db_host'].';dbname='.$config['db_name'], $config['db_username'], $config['db_password'], [
|
||||
'add-drop-table' => true,
|
||||
'add-locks' => false,
|
||||
]);
|
||||
|
||||
$dump->start($file);
|
||||
|
Loading…
Reference in New Issue
Block a user