this post was submitted on 12 Aug 2025
31 points (100.0% liked)

Selfhosted

60758 readers
137 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. Tags [CBH] or [AIP] are required, see the links in Rule 8 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, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

I've been configuring my own selfhosted Kubernetes cluster with various raspberry pis, and for applications that require persistence, I rely on NFS as a provider for Persistent Volumes.

Now I want to deal with backups of my data, mainly the multmedia library I'm building with Jellyfin.

I'm thinking about just doing something outside kubernetes that just copies the data from the directory that NFS provides to another storage.

If you've done something similar, what's your approach? There are solutions that can be done inside kubernetes?

top 6 comments
sorted by: hot top controversial new old
[–] seang96@spgrn.com 6 points 11 months ago (2 children)
[–] Hagenman@lemmy.world 2 points 11 months ago

A lot of commercial kubernetes backup tools incorporate Velero for portions of their protection methods too!

[–] rgalex@lemmy.world 2 points 11 months ago

Interesting! I'm using in fact the NFS CSI driver, and it seems that Velero can attach to any CSI interface to make backups. I'm definetely taking a look at it.

[–] huangrydude@lm.boing.icu 4 points 11 months ago* (last edited 11 months ago)

I use Longhorn for generic PVC and static NFS shares for large files. Longhorn creates scheduled backups to a NFS share, which is then backed up to a Backblaze bucket. I have yet to test restore from Backblaze tho :D

Of course this means that I have 3 copies of the same data across multiple Nodes because of how Longhorn works. That's why I usually don't create large volumes, just enough to get the app working

[–] doeknius_gloek@discuss.tchncs.de 3 points 11 months ago

I'm thinking about just doing something outside kubernetes that just copies the data from the directory that NFS provides to another storage.

This is what I'm doing for the most part. A TrueNAS server provides the NFS shares and periodically backs them up with restic.

Some apps don't like NFS very much, especially those that require SQLite. If you're running Jellyfin over NFS you probably know what I mean. For those apps I use Ceph instead, which is highly available and a lot faster but also more complicated. Those PVCs I backup from within kubernetes to S3 storage with velero.

[–] SuperiorOne@lemmy.ml 2 points 11 months ago* (last edited 11 months ago)

For media files (bad idea for databases), I'm using Kubernetes CronJobs with restic. It mounts PVC to the cron job pod and backups target directories to S3 storage.