Skip to main content

Import / Export

Export Data from Synapse

Make sure that there is access to the Synapse DB and the Synapse media_store

mkdir -p /tmp/export
export_synapse_for_import \
                            -ServerName synapse.example.com \
                            -destination /tmp/export \
                            -mediaDirectory /synapse/media_store \
                            -dbHost synapse-example-com-db \
                            -dbName synapse \
                            -dbPassword synapse \
                            -dbPort 5432 \
                            -dbUsername synapse
                            -skipMissing \

Import Data from Synapse

Make sure that there is access to the Synapse DB

import_synapse \
                -serverName synapse.example.com \
                -baseUrl http://synapse:8008 \
                -config /config/media-repo.yaml \
                -dbHost synapse-example-com-db \
                -dbName synapse \
                -dbPassword synapse \
                -dbPort 5432 \
                -dbUsername synapse