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
 

Hello! I've recently been testing out PieFed (I followed the Docker install instructions), it's actually working quite well... However, I'm a bit of a newbie system administrator, I was wondering if there was a guide or documentation available on how to back up/restore a PieFed instance installed this way? Being able to back up and restore the instance is the one stumbling block I need to get past in order to self host PieFed, so I would certainly appreciate any help that people can provide ๐Ÿ˜€ Thanks!

you are viewing a single comment's thread
view the rest of the comments
[โ€“] asudox@lemmy.asudox.dev 3 points 2 months ago (1 children)
[โ€“] Phoenix1@piefed.social 2 points 2 months ago (1 children)

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!

[โ€“] hendrik@palaver.p3x.de 2 points 2 months ago (1 children)

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.

[โ€“] Phoenix1@piefed.social 2 points 2 months ago (1 children)

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!

[โ€“] rimu@piefed.social 2 points 2 months ago

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.