I need help with migrating instance


#1

Hi guys,

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

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

I used this guide to install my instance:

My new VPS:
4 vCPU
8 GB RAM
Ubuntu Server 18.04.1 LTS

I tried to copy the mastodon folder to the new VPS with the
docker-compose.yml
.env.production
/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


#3

#4

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


#5

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