The data folder
What OpenSync saves in its databases folder, and how to back it up.
On this page
OpenSync keeps everything it saves in the databases folder: inside the OpenSync folder for a source install, and in /www/.src/databases/ in the Docker image.
| File | What it holds |
|---|---|
preferences.json | The instance name, the setup token, the access tokens and the settings of the Setup page. |
extensions/ | The files of the installed extensions. |
extensions.json | The settings of the extensions. |
audit.log | The request log, when it is on. |
memorize_stats.json | How many messages each token received. |
Messages are not stored: OpenSync sends them to the connected clients and keeps nothing else, unless the request log is on.
Back up
Copy the whole folder while OpenSync is stopped, for example:
tar -czf opensync-backup.tar.gz databasesFor Docker, copy it out of the container:
docker cp opensync:/www/.src/databases ./opensync-backupTo restore, stop OpenSync, put the folder back and start OpenSync.
preferences.json holds your tokens. Keep backups where only you can read them.