Note: You are currently viewing documentation for Moodle 3.4. Up-to-date documentation for the latest stable version of Moodle is likely available here: Automated course backup.

Automated course backup: Difference between revisions

From MoodleDocs
(setting a backup schedule)
m (→‎See also: link edit)
Line 28: Line 28:


*[[Backup FAQ]]
*[[Backup FAQ]]
*[[Backup restore]]
*[[Course backup]]


[[Category:Backup]]
[[Category:Backup]]

Revision as of 14:46, 31 July 2008

Location: Administration > Courses > Backups


The backup configuration page enables administrators to configure automated course backups and a backup schedule. Automated course backups runs the same functions as individual course backups. It's a good idea to schedule backups for when your server isn't usually busy. Running the backup tool over all the courses can be processor-intensive, so you shouldn't run it when there are a lot of students trying to access the server.

Setting a backup schedule

To set the backup schedule:

  1. Click the Active checkbox. This turns on the automated backup system.
  2. Click the days of the week to run the backup.
  3. Set the execution time for the backup process. For most servers, early morning will be the best time.
  4. Set the "Save to..." path. If you can, choose a backup path on another machine or on a different drive than the one Moodle is on. You don’t want to lose your backups at the same time you lose your Moodle site if the drive fails. If you leave the field blank, then backup zip files will be saved in the backup folder of each course files folder.
  5. Click the "Save changes" button.

Once you've set up your backup schedule, Moodle will automatically create archives of all the courses on the server at the time you specified. Once the backup is complete, Moodle will send you an email describing the status of the backup.

Template:Moodle 1.6Note: From 1.6 onwards, course backups automatically skip courses which are unavailable to students AND have not been changed in the last month.

Course versus site backups

  • Course backups are more expensive in terms of time and CPU usage. The recovery time to have your site running again is longer.
  • Course backups are useful for obtaining "fresh" copies of courses to be re-used or distributed individually, however they should never be used as a primary backup system (unless your hosting doesn't allow the preferred site backups).
  • In order to make scheduled course backups, you have to setup CRON to run periodically. Have a look at Set up cron for details.
  • Site backups, as explained in upgrading Moodle, are recommended in order to have all data saved with the best confidence and the shorter recovery time.

See also