Question

How to backup data from old version of Mastodon Instance?

While I asked how to upgrade my Mastodon instance which is still on Version 3.1.3 (https://bit.ly/3WJT6zz)and basically received no viable solution. I am now looking to back up my data and blast it so I can recreate a new instance using the most current droplet Digital Ocean has available. Is there a way to back up all user data in order to restore it to my new instance? Or, does anyone have any reason why all suggestions are not upgrading my instance to version 4.0.2? I created a 4 GB swap file before launching the upgrade. When I go through the steps one by one, they all seem to install fine. But when I reload my instance it is still on 3.1.3. Any help would be appreciated.


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
February 25, 2023

Hi there,

As the 1-Click Mastodon instance comes with a Postgres database, you can use the pg_dump or pg_dumpall to backup your database.

It is actually also recomended to occasionally making a backup with pg_dump or pg_dumpall.

For more information, I could also suggest taking a look at the official Mastodon docs on how to backup your server:

https://docs.joinmastodon.org/admin/backups/

Hope that this helps!

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel