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
Branches
Tags
No related merge requests found
...@@ -69,7 +69,7 @@ class backup_manager { ...@@ -69,7 +69,7 @@ class backup_manager {
} }
// Perform Backup. // Perform Backup.
$bc = new \backup_controller(\backup::TYPE_1COURSE, $courseid, \backup::FORMAT_MOODLE, $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. $bc->execute_plan(); // Execute backup.
$results = $bc->get_results(); // Get the file information needed. $results = $bc->get_results(); // Get the file information needed.
/* @var $file \stored_file instance of the backup file*/ /* @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