---
title: Back up your data
project: OpenMail
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/openmail/1-0/guides/backups/
updated: 2026-11-19T07:58:00.462Z
---

# Back up your data

> Which files hold your data and how to copy them safely.

OpenMail keeps all its data in the `databases` folder inside the app folder.

## The files

| File or folder | What it holds |
|---|---|
| `databases/memorize_data.json` | Profiles, layouts, templates, API tokens and the configuration, including the primary access token. |
| `databases/logs.nosql` | The [logs](../logs/) of sent emails. |
| `databases/fs-files/` | Images uploaded in the template editor. |

## Make a backup

**1.** Stop OpenMail.

**2.** Copy the `databases` folder:

```bash
cp -a databases databases-backup-$(date +%Y%m%d)
```

**3.** Start OpenMail again.

`memorize_data.json` contains your SMTP passwords and all tokens in plain text. Store backups where only you can read them.

## Restore a backup

Stop OpenMail, replace the `databases` folder with the backup, and start OpenMail again.

## Keep the logs small

`logs.nosql` grows with every email. To start over, stop OpenMail, move the file away and start OpenMail again. The next email creates a new file.
