If you have previously self-hosted your setup with our legacy Syncing Server, you will need to first dump the data from your existing database. There are two ways to do this depending on whether you had a separate database or the one we provided with our Docker setup.
In order to create a database dump, use the following command:
$ docker exec your_db_container_id sh -c 'exec mysqldump your_database_name -uroot -p "your_password"' > ./dbdump.sql
Note: In order to get the value of
your_db_container_id
, rundocker ps
to inspect your running containers.your_database_name
andyour_password
have to be changed to whatever you had set up in your .env file.
Run:
mysqldump your_database_name -h your_host -u your_user -p "your_password" > ./dbdump.sql
Note Change
your_host
,your_database_name
,your_user
andyour_password
to values that you use to connect to your database.
In order to import your data to the database that our self-hosted setup will create, just place your dbdump.sql
file inside the path-to-your-self-hosted/data/import
folder. The data will be imported once the setups starts.
To proceed, head over to our Self-hosting with Docker page.