I need help with migrating instance

Hi guys,

I want to migrate my docker mastodon instance from one VPS to another VPS.

Old VPS:
1 vCPU
Debian 9
Mastodon 2.7.1 as docker containers + nginx container

I used this guide to install my instance:

My new VPS:
4 vCPU
Ubuntu Server 18.04.1 LTS

I tried to copy the mastodon folder to the new VPS with the
/nginx folder

I tried to dump the db from the old VPS with both commands:

  • docker exec -t mastodon_db_1 pg_dumpall -c -U postgres > dump.sql
  • docker exec mastodon_db_1 pg_dump -Fc -U postgres postgres > db_backup.dump

but I fail to import the dump to the new instance.
Can someone tell me how to migrate between docker instances?

Thank you

Thanks I know that page. Is there a docker version for this?

I did it! Yeah it took me 18 hours.

I had to tun
docker-compose run --rm web ./bin/tootctl feeds build
and then precompile the asset