[], // Array of tables to backup 'ignore' => [], // List of tables to omit from the backup 'format' => '', // gzip, zip, txt 'filename' => null, // File name - NEEDED ONLY WITH ZIP FILES 'add_drop' => true, // Whether to add DROP TABLE statements to backup file 'add_insert' => true, // Whether to add INSERT data to backup file 'newline' => "\n" // Newline character used in backup file ]; $backup = $dbutil->backup($prefs); return $this->response->download($filename . '.sql', $backup); } }