<a id="how-to-back-up-restore"></a>

# How to back up and restore

Mattermost is a stateless web application, and all states, including the chat
history and login, are stored inside the PostgreSQL database.

Refer to the [PostgreSQL charm’s backup and restore guide](https://canonical.com/data/postgresql/docs/latest/how-to/back-up-and-restore/)
to back up and restore data in Mattermost.
