# 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/*](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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.chamilo.org/1.11.x/admin-guide/backups/external_backups/the_chamilo_root_directory.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
