Saving a course
The platform administrator can save any course from (among other methods) the administrative interface.
- Go to : « Administration » → « Courses list » :
Illustration 18: Administration – Courses block
- Click on the CD icon, for the course to export.
Illustration 19: Administration – Courses list – Backup
- Chamilo then suggests to « Generate a backup » or « Import backup information » from backup. Click on Generate backup.
Illustration 20: Administration - Backup
- You can choose between a complete backup and a specific selection (depending on your needs). Let's pick Complete backup for the example.
Illustration 21: Administration – Backup settings
- The backup is generated and you just have to click the zip file button to download it.
Illustration 22: Administration – Backup, results of backup generation
- On clicking the Generate backup button, Chamilo creates a backup file which, by default, ends up in its chamilo/archive directory. You can thus recover it by direct access, but that means other people can also have access to it15. This means, as an admin, that you should both have a regular process to clean this directory (we offer one in the main/cron directory but you have to execute it) and that you should set your configuration (through .htaccess or VirtualHost config) to avoid direct navigation inside the main/archive directory.
There is also another way to generate backups...
As admin or teacher, click on the My courses tab, then on one of the courses available. Then it is possible to generate a backup pretty much the same way clicking on the Maintenance tool.
Illustration 23: Interface – Course administration tools
The interface is slightly different...
Illustration 24: Interface – Course backup options
With the course backup options, you can still execute three more functions:
Course copy allows you to duplicate all or part of a course into another (preferably empty) course. The only required state before this is to have a first course with something to copy, and another course which doesn't contain the elements of the first one.
Empty course allows you to empty the whole contents of a course. Let's say you want to start a fresh course inside the same “shell” as the previous one... just click this link and all the resources previously created will be gone, with no chance to recover them. Obviously, before you do that, you might want to recover the course element through a Course backup operation.
Delete allows you to delete the whole course, this also means removing its empty shell. A confirmation is required, but once it's removed, don't expect it to be available as a safe copy anywhere...
Note : when opening the backup's .zip file, you will find a close similarity with the Documents tool documents hierarchy.
For your information, the default .zip file for a course initially created with example content weighs around 8.9MB.
It contains :
one internal structure file named course_info.dat
one directory called Document
a series of files and folders containing the course documents, anything not linked to the users (assignments and other stuff user-related are not saved)
The Document directory has a structure similar to the one presented in illustration 25, which reproduces the documents tool structure as shown in illustration 26.
Illustration 25: Backup – Backup files structure
Illustration 26: Interface – Documents list
These documents are the default contents of the course.
Furthermore, the backup will only recover documents (images, videos, etc.) related to the course.
15. That is, if they can make up the backup file name – which is the code of the course + a timestamp including the second it has been generated, so it might take a long time to just “guess” ↩