Back up your data
Which files hold your data, and how to back them up and restore them.
On this page
OpenLogger keeps all its data in the databases folder inside the app folder. With Docker, it is the volume mounted on /www/.src/databases. See Install with Docker.
The files
| File | What it holds |
|---|---|
databases/logs.nosql | All logs, one per line. |
databases/memorize_data.json | The API tokens and the configuration, including the primary access token. |
Make a backup
1. Stop OpenLogger.
2. Copy the databases folder:
cp -a databases databases-backup-$(date +%Y%m%d)3. Start OpenLogger again.
memorize_data.json contains all tokens in plain text. Store backups where only you can read them.
Restore a backup
Stop OpenLogger, replace the databases folder with the backup, and start OpenLogger again.