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

Selfhosted

50456 readers
357 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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

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

Questions? DM the mods!

founded 2 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 5 comments
sorted by: hot top controversial new old
[–] seang96@spgrn.com 4 points 2 days ago (2 children)
[–] rgalex@lemmy.world 2 points 1 day 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.

[–] Hagenman@lemmy.world 1 points 2 days ago

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

[–] huangrydude@lm.boing.icu 3 points 2 days ago* (last edited 2 days 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

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.