" . $_dir . "/" . $backupFile; try { system($command); return $backupFile; } catch (Exception $ex) { return FALSE; } } public static function dumpMysqlRestore(string $_backupFile) { $command = "mysql -h " . DB_HOST . " -u " . DB_USER . " -p" . DB_PASS . " " . DB_NAME . " < " . $_backupFile; try { system($command); return TRUE; } catch (Exception $ex) { return FALSE; } } public static function jsonRestore() { json::create("salaries"); json::create("excel"); json::create("excel-proweb"); json::create("events"); json::create("users"); json::create("salaries-proweb"); } }