Back up OpenReports
Find the file that holds your settings, views and reports, and back it up or restore it.
On this page
OpenReports keeps everything it needs in one file: databases/memorize_data.json. It holds the settings of Configuration, all views and all reports. Your report data stays in PostgreSQL; back that up with your usual PostgreSQL tools.
The file contains the connection string with its password and the API token. Keep your copies in a safe place.
When the file is written
OpenReports writes the file about ten seconds after a change. Wait a little after your last change before you stop the app or copy the file.
Back up
Copy the file while OpenReports is running or stopped:
cp databases/memorize_data.json memorize_data.backup.jsonWith Docker, the file is in the volume mounted at /www/.src/databases:
docker cp openreports:/www/.src/databases/memorize_data.json memorize_data.backup.jsonRestore
- Stop OpenReports.
- Copy your backup over
databases/memorize_data.json. - Start OpenReports again.
OpenReports reads the file when it starts.