15

So I've been self-hosting for a few years now...got a decent setup...

But I only really got into docker-compose in the last few months... I mean, I've used it through the "Apps" in TureNAS, but never directly....

I ran a mastodon host on a VM (giant pain in the ass) and a few other things that weren't available as apps, but never mainstream...

Once I got into it, I managed to get everything moved over to truenas as docker containers..

Last week it saved my ass...the AC in the house failed..and I was able to shut down everything save the Truenas (with a fan pointed at the front of the server) and keep everything up and running throughout..

So it's been helpful to know, and an awesome learning experience. (I'm happiest when I'm learning new things)

My question is this...

How do you back them up? I mean, I have snapshot backups of my docker-volume ZFS dataset, and replicate that to a remote host...but I'm not even sure I'd know how to recover it if I had to...is it just a file copy and restart?

you are viewing a single comment's thread
view the rest of the comments
[-] Jason2357@lemmy.ca 3 points 20 hours ago* (last edited 20 hours ago)

Yeah, I bind mount the config inside a config directory just below the compose file, and the state (databases, files, etc) to a seperate storage location that makes sense. The compose and config gets added to git and pushed to a forge, while the storage directories are backed up like normal (in my case, zfs snapshots pushed to another computer and then restic backs up those cold files to b2. The volumes are ephemeral.

this post was submitted on 08 Jul 2026
15 points (100.0% liked)

Selfhosted

60542 readers
579 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS