MDL-28505 Backup: Asynchronous backup and restore
This patch adds asynchronous backup and restore functionality to Moodle. This is an optional feature and is not enabled by default. It can be enabled by site administrators. Asynchronous backup and restores are actioned by the Moodle adhoc task API. The progress of backup and restores is displayedin the Moodle UI. Users can also be sent a message when a backup or restore operation completes via the Moodle messaging API.
This commit is contained in:
@@ -74,6 +74,33 @@ $functions = array(
|
||||
'ajax' => true,
|
||||
'loginrequired' => false,
|
||||
),
|
||||
'core_backup_get_async_backup_progress' => array(
|
||||
'classname' => 'core_backup_external',
|
||||
'classpath' => 'backup/externallib.php',
|
||||
'methodname' => 'get_async_backup_progress',
|
||||
'description' => 'Get the progress of an Asyncronhous backup.',
|
||||
'type' => 'read',
|
||||
'ajax' => true,
|
||||
'loginrequired' => true,
|
||||
),
|
||||
'core_backup_get_async_backup_links_backup' => array(
|
||||
'classname' => 'core_backup_external',
|
||||
'classpath' => 'backup/externallib.php',
|
||||
'methodname' => 'get_async_backup_links_backup',
|
||||
'description' => 'Gets the data to use when updating the status table row in the UI for when an async backup completes.',
|
||||
'type' => 'read',
|
||||
'ajax' => true,
|
||||
'loginrequired' => true,
|
||||
),
|
||||
'core_backup_get_async_backup_links_restore' => array(
|
||||
'classname' => 'core_backup_external',
|
||||
'classpath' => 'backup/externallib.php',
|
||||
'methodname' => 'get_async_backup_links_restore',
|
||||
'description' => 'Gets the data to use when updating the status table row in the UI for when an async restore completes.',
|
||||
'type' => 'read',
|
||||
'ajax' => true,
|
||||
'loginrequired' => true,
|
||||
),
|
||||
'core_badges_get_user_badges' => array(
|
||||
'classname' => 'core_badges_external',
|
||||
'methodname' => 'get_user_badges',
|
||||
|
||||
Reference in New Issue
Block a user