How to Update Mastodon - docker Compose

sources:

https://ashfurrow.com/blog/restoring-a-postgres-mastodon-database/

# Dump the backup into the root of the Docker container's filesystem
docker exec -t mastodon_db_1 pg_dump -Fc -U postgres -f '/export.dump'
# Now copy it into the host machines filesystem
docker cp mastodon_db_1:/export.dump /home/ash/export.dump

this is a 2 step process → as docker file directories get deleted once container is down / deleted !!

so we need to copy it out of there into our local machine

https://www.bentasker.co.uk/posts/blog/general/upgrading-a-docker-mastodon-instance-to-gain-security-fixes.html

nice for what to change / walkthrough

Untitled