Spanish Total.js
English
Documentation For AI agents
Contents

The data folder

What OpenSync saves in its databases folder, and how to back it up.

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

FileWhat it holds
preferences.jsonThe instance name, the setup token, the access tokens and the settings of the Setup page.
extensions/The files of the installed extensions.
extensions.jsonThe settings of the extensions.
audit.logThe request log, when it is on.
memorize_stats.jsonHow 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 databases

For Docker, copy it out of the container:

docker cp opensync:/www/.src/databases ./opensync-backup

To restore, stop OpenSync, put the folder back and start OpenSync.

preferences.json holds your tokens. Keep backups where only you can read them.

Made in Europe