Difference between revisions of "Automated course backup"

Jump to: navigation, search

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

m (removed cross version links - docs are now versioned)
(backup template)
Line 1: Line 1:
Location: ''Administration > Courses > Backups''
+
{{Backup}}
 +
{{Update}}
 +
A site administrator can configure a schedule for automated course backups in ''Settings > Site administration > > Courses > Backups > Automated backup setup''.
  
 
The backups page enables administrators to configure automated course backups and a backup schedule.
 
 
Automated course backups runs the same functions as individual [[Course backup|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. You should always alert users with an announcement on the first page that if they log on during the backup hours they may notice a decrease in performance.   
 
Automated course backups runs the same functions as individual [[Course backup|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. You should always alert users with an announcement on the first page that if they log on during the backup hours they may notice a decrease in performance.   
  
 
In order to make scheduled backups, you have to set up CRON to run periodically. Please refer to the [[Cron|cron instructions]].
 
In order to make scheduled backups, you have to set up CRON to run periodically. Please refer to the [[Cron|cron instructions]].
  
==Setting a backup schedule==
+
==Setting an automated course backup schedule==
  
 
To set the backup schedule:
 
To set the backup schedule:
#Click the Active checkbox. This turns on the automated backup system.
+
#Go to ''Settings > Site administration > > Courses > Backups > Automated backup setup''
#Click the days of the week to run the backup.
+
#Set backup_auto_active to enabled
 +
#Select the days of the week to run the backup.
 
#Set the execution time for the backup process. For most servers, early morning will be the best time.  Keep in mind the time zone your server is using.
 
#Set the execution time for the backup process. For most servers, early morning will be the best time.  Keep in mind the time zone your server is using.
 
#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. On a Linux server the path might look like: /home/(your user or domain)/public_html/archive/ or if it's below the publicly accessible folders: /home/(your user or domain)/archive/ if the path is not recognized a red X is shown after saving, otherwise a green check.
 
#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. On a Linux server the path might look like: /home/(your user or domain)/public_html/archive/ or if it's below the publicly accessible folders: /home/(your user or domain)/archive/ if the path is not recognized a red X is shown after saving, otherwise a green check.
Line 18: Line 19:
 
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.
 
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.
  
Note: From 1.6 onwards, course backups automatically skip courses which are unavailable to students and have not been changed in the last month.
+
Note: Automated course backups automatically skip courses which are unavailable to students and have not been changed in the last month.
  
 
==Course versus site backups==
 
==Course versus site backups==
Line 27: Line 28:
 
==See also==
 
==See also==
  
*[[Backup and restore FAQ]]
+
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=167471 Where is the Moodle 2.0 "Course Backup Filearea"?] forum discussion
 
 
[[Category:Backup]]
 
  
 
[[eu:Ikastaroen_segurtasun-kopia_automatikoa]]
 
[[eu:Ikastaroen_segurtasun-kopia_automatikoa]]
 
[[fr:Sauvegarde (administrateur)]]
 
[[fr:Sauvegarde (administrateur)]]
 
[[ja:自動コースバックアップ]]
 
[[ja:自動コースバックアップ]]

Revision as of 08:14, 13 October 2011

This page requires updating. Please do so and remove this template when finished.


A site administrator can configure a schedule for automated course backups in Settings > Site administration > > Courses > Backups > Automated backup setup.

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. You should always alert users with an announcement on the first page that if they log on during the backup hours they may notice a decrease in performance.

In order to make scheduled backups, you have to set up CRON to run periodically. Please refer to the cron instructions.

Setting an automated course backup schedule

To set the backup schedule:

  1. Go to Settings > Site administration > > Courses > Backups > Automated backup setup
  2. Set backup_auto_active to enabled
  3. Select the days of the week to run the backup.
  4. Set the execution time for the backup process. For most servers, early morning will be the best time. Keep in mind the time zone your server is using.
  5. 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. On a Linux server the path might look like: /home/(your user or domain)/public_html/archive/ or if it's below the publicly accessible folders: /home/(your user or domain)/archive/ if the path is not recognized a red X is shown after saving, otherwise a green check.
  6. 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.

Note: Automated course backups automatically skip courses which are unavailable to students and have not been changed in the last month.

Course versus site backups

  • Automated 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).

See also