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 of sent emails. |
databases/fs-files/ | Images uploaded in the template editor. |
Make a backup
1. Stop OpenMail.
2. Copy the databases folder:
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.