Moodle plugins directory: Remote backup provider: Versions: v3.4.0 | Moodle.org
Remote backup provider
Remote backup provider v3.4.0
Moodle Remote Backup Provider
This local module allows you to restore a course from a remote Moodle instance into your current instance via a REST web service. The intended use case is quick restores from an archival Moodle instance into the current yearly instance.
It is limited to administrators but could in the future be extended for teacher use. Currently it is limited to one pair of source and target instances.
Configuration
You will need to install this plugin on both the source and target instances. On the source Moodle instance you'll need to create the following:
- An external web service.
- A user with sufficient permissions to use said web service.
- A token for that user. For additional security it should be restricted to the target server's IP address.
See Using web services in the Moodle documentation for information about creating and enabling web services. The user will need the following capabilities in addition to whichever protocol you enable:
moodle/course:view
moodle/course:viewhiddencourses
moodle/backup:backupcourse
The web service will need the following functions:
local_remote_backup_provider_find_courses
local_remote_backup_provider_get_course_backup_by_id
On the target Moodle instance you will need to configure the token and source Moodle URL in the System Administration block under Local Plugins > Remote Backup Provider.
Usage
On the target instance you will have a new link in the Course Administration block called "Import from remote". This will bring up a page with a search interface which queries the source instance for a list of matching courses. Clicking the link begins the following process, all of which happens automatically:
- A backup will be created on the source instance.
- The backup will be copied into the target instance.
- You will be redirected to the course restore dialog with the backup preloaded.
At this point follow the course restore process. The backup is created according to the general defaults on the source instance. Cron is configured to delete the backup files on both environments after 24 hours.
Requirements
- Moodle 3.4 (build 2017111300 or later)
See branches for versions prior to Moodle 3.4.
Installation
Copy the remote_backup_provider folder into your /local directory and visit your Admin Notification page to complete the installation.
Author
Charles Fulton (fultonc@lafayette.edu)
Version information
- Version build number
- 2018051300
- Version release name
- v3.4.0
- Can be updated from
- Alpha for 2.8+ (2015080800)
- Can be updated to
- v3.4.1 (2018112700)
- Maturity
- Version establa
- MD5 Sum
- 676a283596beac43174c3cba07af1564
- Supported software
- Moodle 3.4, Moodle 3.5
- The more recent release v3.4.1 (2018112700) exists for Moodle 3.4
- The more recent release v3.4.1 (2018112700) exists for Moodle 3.5
Version control information
- Version control system (VCS)
- GIT
- VCS repository URL
- VCS tag
- v3.4.0
Default installation instructions for plugins of the type General plugins (Local)
- Make sure you have all the required versions.
- Download and unpack the module.
- Place the folder in the "local" subdirectory.
- Visit http://yoursite.com/admin to finish the installation.