Knowledgebase: Migration

Can I migrate out of MaaStodon?

Yes, portability is one of our priorities. You can request an encrypted archive of your instance and restore it to your own Mastodon server or another hosting provider.

In the archive, you will find:

  • a full PostgreSQL database that you can restore using pg_restore;
  • a mastodon_env.txt file containing environment variables as when running on MaaStodon.

Uploaded media is not included as it is usually the heaviest part, but you can also migrate it from information included in the mastodon_env.txt file. It can be done using s3cmd or minio client:

./mc config host add maass3 AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY --lookup path
./mc mirror maass3/S3_BUCKET/ /home/mastodon/live/public/system/

This method can be used to get the files locally, or directly transfer them to another S3-compatible object storage. Replace AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEY, and S3_BUCKET by their value in your mastodon_env.txt.

Rating: 0 (0 votes)

View other Technical articles, or continue viewing other knowledgebase articles.