Not Just Paranoid

Another site by Pete Maynard

Migrating Matrix Synapse to Another Server

Its that time of year! My old synapse VM is getting old, lets move it to Fedora. This post will just focus on database and config stuff, if you want to know my matrix is setup, view this post.

Old Box

Backup original server, you probaly want to compress the SQL before moving it.

sudo -u postgres pg_dump -C synapse | 20200529-synapse.sql
sudo zip /etc/synapse/* 

Fedora box

Install and enable the basics:

dnf install matrix-synapse python-psycopg2 postgresql-server 
systemctl enable postgresql
systemctl start postgresql

Initialise the database:

sudo -u postgres initdb
sudo -u postgres createuser synapse_user

Import the backup:

cat 20200529-synapse.sql | sudo -u postgres psql
cp *.yaml /etc/synapse/
cp *.key /etc/synapse/


That should be it. Worked for me.

29 May 2020 | Tags ( matrix postgresql linux )

Website Last Updated on 27 Nov 2020 (CC BY-SA 4.0)

This site uses JQuery and nanogallery2 hosted by
for the Flickr photo feed and GoatCounter for user insights.