this post was submitted on 09 Jan 2026
23 points (100.0% liked)
PieFed Meta
4414 readers
24 users here now
Discuss PieFed project direction, provide feedback, ask questions, suggest improvements, and engage in conversations related to the platform organization, policies, features, and community dynamics.
Wiki
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Just dump the entire db
Thanks, that should be simple to figure out if it's just one step, although I've never dumped a database from a Docker image before...I'll have to do some searching and see if I can figure it out!
In addition to the DB, there's also a media directory with a lot of stuff like images. I guess that should be saved as well. Not sure how that's done with Docker but I'm sure it has some mechanism to back up volumes. It's called "media" in the docker compose file, or "app/static/media/" in my non-containerized install.
Unfortunately I haven't been able to figure this out, I was able to write a script for Mastodon that automated the process of dumping the database, copying the system folder and so on, I was able to restore a test backup I made successfully as well. I only say that to indicate that I have at least some familiarity with the shell, but not much ๐ In the case of Mastodon it's running on "bare metal" so to speak rather than Docker, so this is probably much easier for someone who is familiar with Docker!
You could use PieFed in docker with the DB connection set in .env.docker in such a way that it connects to a database on the host. That'd be easier to get to.