Fix creazione backup

This commit is contained in:
Thomas Zilio 2019-03-04 18:42:56 +01:00
parent daffd7b86d
commit c04cfca70e
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,7 @@ class Backup
/** /**
* Effettua il backup giornaliero. * Effettua il backup giornaliero.
* *
* @return null|bool * @return bool|null
*/ */
public static function daily() 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'], [ $dump = new Mysqldump('mysql:host='.$config['db_host'].';dbname='.$config['db_name'], $config['db_username'], $config['db_password'], [
'add-drop-table' => true, 'add-drop-table' => true,
'add-locks' => false,
]); ]);
$dump->start($file); $dump->start($file);