Spanish Total.js
English
Documentation For AI agents
Contents

Back up your data

Which files hold your data, and how to back them up and restore them.

.md GitHub
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

FileWhat it holds
databases/logs.nosqlAll logs, one per line.
databases/memorize_data.jsonThe 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.

Good to know

  • Changes to tokens and the configuration are written to memorize_data.json about 10 seconds after you save them. Wait a moment before you stop the app.
  • logs.nosql grows with every log. To keep it small, download the logs you want to keep and clear the rest.
Made in Europe