# Back-ups

Regelmatige back-ups zijn essentieel voor het beschermen van uw Chamilo-gegevens. Deze pagina behandelt wat u moet back-uppen en hoe u dat doet.

## Wat te back-uppen

### 1. Database

De Chamilo-database bevat alle platformgegevens: gebruikers, cursussen, tracking, cijfers, berichten en instellingen. Dit is het meest cruciale onderdeel om te back-uppen.

**Hoe te back-uppen:**

```bash
mysqldump -u username -p chamilo_database > chamilo_backup_$(date +%Y%m%d).sql
```

### 2. Bestanden

Chamilo slaat geüploade bestanden (documenten, afbeeldingen, SCORM-pakketten) op in het bestandssysteem. De belangrijkste mappen om te back-uppen zijn:

* `var/` — Geüploade bestanden en bronnen
* `public/plugin/` — Pluginbestanden (alleen als u aangepaste plugins hebt toegevoegd)

Als u cloudopslag gebruikt (S3, Azure Blob), zorg er dan voor dat de back-up-/versiebeheerfunctie van uw cloudprovider is ingeschakeld.

### 3. Configuratie

* `.env` — Uw omgevingsconfiguratie
* `config/` — Eventuele aangepaste configuratiebestanden

## Back-upschema

| Component    | Aanbevolen frequentie                                     |
| ------------ | --------------------------------------------------------- |
| Database     | Dagelijks                                                 |
| Bestanden    | Dagelijks of wekelijks (afhankelijk van uploadactiviteit) |
| Configuratie | Na elke configuratiewijziging                             |

## Herstel

Om te herstellen vanuit een back-up:

1. Herstel de database vanuit de SQL-dump
2. Herstel de bestandsmappen
3. Herstel de configuratiebestanden
4. Leeg de Symfony-cache: `php bin/console cache:clear`

## Tips

* **Automatiseer back-ups** — Gebruik cron-jobs om back-ups automatisch uit te voeren
* **Sla op buiten de locatie** — Bewaar back-upkopieën op een aparte server of in cloudopslag
* **Test het herstel** — Test regelmatig of u succesvol kunt herstellen vanuit een back-up
* **Documenteer uw proces** — Houd schriftelijke instructies voor het herstelproces bij, zodat iedereen in het team dit kan uitvoeren


---

# 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/2.x-nl/beheerdershandleiding/admin-guide/maintenance/backups.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.
