Ejemplo n.º 1
0
 protected function define_execution()
 {
     // Get basepath
     $basepath = $this->get_basepath();
     // Calculate the zip fullpath (in OS temp area it's always backup.mbz)
     $zipfile = $basepath . '/backup.mbz';
     $has_file_references = backup_controller_dbops::backup_includes_file_references($this->get_backupid());
     // Perform storage and return it (TODO: shouldn't be array but proper result object)
     return array('backup_destination' => backup_helper::store_backup_file($this->get_backupid(), $zipfile, $this->task->get_progress()), 'include_file_references_to_external_content' => $has_file_references);
 }