Skip to content
Snippets Groups Projects
Commit 94e2fbee authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

Use backup settings from automated backups

parent dec03a8f
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ class backup_manager {
}
// Perform Backup.
$bc = new \backup_controller(\backup::TYPE_1COURSE, $courseid, \backup::FORMAT_MOODLE,
\backup::INTERACTIVE_NO, \backup::MODE_GENERAL, get_admin()->id);
\backup::INTERACTIVE_NO, \backup::MODE_AUTOMATED, get_admin()->id);
$bc->execute_plan(); // Execute backup.
$results = $bc->get_results(); // Get the file information needed.
/* @var $file \stored_file instance of the backup file*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment