The Chamilo root directory

The root directory is (in this context) the directory which contains the Chamilo files. For the example in this tutorial, let's consider it has been installed in /var/www/chamilo and is available through http://localhost/chamilo/ (for a remote server, we will need to use FTP o SSH/ SFTP).

To save, you will have to compress the files through your terminal going to the /var/www/ directory.

user@server:cd /var/www

Compress the directory using the “ tar “ command to generate a tar.gz file:

user@server:/var/www$ sudo tar cvfj /home/you/bkp/backup_chamilo.tar.gz chamilo/

It can be practical to give a name composed using the date, like 2010-05-07-backup-chamilo.__tar.gz. This way, if you store a series of backup files, it will be easy to sort them by date.

This backup copy will contain all information from the Chamilo database accesses and all its configurations. It is then useful in case of data loss or an undesired incursion on your server. It is the only reliable way to rebuild your Chamilo server if any major problem occurs.

This backup can be executed automatically by a scheduling system (cron process under GNU/Linux) on the server, but it can be executed manually in case the server doesn't do it right.

If you do not have access to a terminal, it is possible you might need to execute a backup copy through FTP. This operation, however (without compression), can be much longer.

Last updated