protected function define_execution() {
     $progress = $this->task->get_progress();
     $progress->start_progress('Deleting backup directories');
     backup_helper::check_and_create_backup_dir($this->get_backupid());// Create backup temp dir
     backup_helper::clear_backup_dir($this->get_backupid(), $progress);           // Empty temp dir, just in case
     backup_controller_dbops::drop_backup_ids_temp_table($this->get_backupid()); // Drop ids temp table
     backup_controller_dbops::create_backup_ids_temp_table($this->get_backupid()); // Create ids temp table
     $progress->end_progress();
 }
Пример #2
0
 protected function define_execution()
 {
     backup_helper::check_and_create_backup_dir($this->get_backupid());
     // Create backup temp dir
     backup_helper::clear_backup_dir($this->get_backupid());
     // Empty temp dir, just in case
     backup_helper::delete_old_backup_dirs(time() - 4 * 60 * 60);
     // Delete > 4 hours temp dirs
     backup_controller_dbops::create_backup_ids_temp_table($this->get_backupid());
     // Create ids temp table
 }