Run this if you’d like to import your database from a previous default installation of Synapse.
(don’t forget to import your media_store files as well - see the importing-synapse-media-store guide).
While this playbook only supports running Synapse in combination with PostgreSQL, a Synapse instance installed manually usually defaults to using an SQLite database.
If you have such a Synapse setup and wish to migrate it to one managed by the playbook (and over to PostgreSQL), this documentation page is for you.
Before doing the actual import:
start tag yet. If you had started your new Synapse instance, it may have already initialized your Postgres database and importing onto it may not work. In such cases, you may need to clean up the synapse database first.just start-group postgresRun this command (make sure to replace <server-path-to-homeserver.db> with a file path on your server):
just run-tags import-synapse-sqlite-db --extra-vars=server_path_homeserver_db=<server-path-to-homeserver.db>
Notes:
<server-path-to-homeserver.db> must be replaced with a file path to a homeserver.db file on the server (not on your local machine!).