this post was submitted on 29 Aug 2025
86 points (97.8% liked)

Selfhosted

50946 readers
762 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 recently replaced an ancient laptop with a slightly less ancient one.

  • host for backups for three other machines
  • serve files I don't necessarily need on the new machine
  • relatively lightweight - "server" is ~15 years old
  • relatively simple - I'd rather not manage a dozen docker containers.
  • internal-facing
  • does NOT need to handle Android and friends. I can use sync-thing for that if I need to.

Left to my own devices I'd probably rsync for 90% of that, but I'd like to try something a little more pointy-clicky or at least transparent in my dotage.

Edit: Not SAMBA (I freaking hate trying to make that work)

Edit2: for the young'uns: NFS (linux "network filesystem")

Edit 3: LAN only. I may set up a VPN connection one day but it’s not currently a priority. (edited post to reflect questions)

Last Edit: thanks, friends, for this discussion! I think based on this I'll at least start with NFS + my existing backups system (Mint's thing, which is I think just a gui in front of rcync). May play w/ modern SAMBA if I have extra time.

Ill continue to read the replies though - some interesting ideas.

you are viewing a single comment's thread
view the rest of the comments
[–] irotsoma@lemmy.blahaj.zone 4 points 3 hours ago (2 children)

NFS is really good inside a LAN, just use 4.x (preferably 4.2) which is quite a bit better than 2.x/3.x. It makes file sharing super easy, does good caching and efficient sync. I use it for almost all of my Docker and Kubernetes clusters to allow files to be hosted on a NAS and sync the files among the cluster. NFS is great at keeping servers on a LAN or tight WAN in sync in near real time.

What it isn't is a backup system or a periodic sync application and it's often when people try to use it that way that they get frustrated. It isn't going to be as efficient in the cloud if the servers are widely spaced across the internet. Sync things to a central location like a NAS with NFS and then backups or syncs across wider WANs and the internet should be done with other tech that is better with periodic, larger, slower transactions for applications that can tolerate being out of sync for short periods.

The only real problem I often see in the real world is Windows and Samba (sometimes referred to as CIFS) shares trying to sync the same files as NFS shares because Windows doesn't support NFS out of the box and so file locking doesn't work properly. Samba/CIFS has some advantages like user authentication tied to active directory out of the box as well as working out of the box on Windows (although older windows doesn't support versions of Samba that are secure), so if I need to give a user access to log into a share from within a LAN (or over VPN) from any device to manually pull files, I use that instead. But for my own machines I just set up NFS clients to sync.

One caveat is if you're using this for workstations or other devices that frequently reboot and/or need to be used offline from the LAN. Either don't mount the shares on boot, or take the time to set it up properly. By default I see a lot of people get frustrated that it takes a long time to boot because the mount is set as a prerequisite for completing the boot with the way some guides tell you to set it up. It's not an NFS issue; it's more of a grub and systemd (or most equivalents) being a pain to configure properly and boot systems making the default assumption that a mount that's configured on boot is necessary for the boot to complete.

[–] BonkTheAnnoyed@lemmy.blahaj.zone 1 points 3 hours ago (1 children)

Thanks for that caveat. I could definitely see myself falling into that

[–] irotsoma@lemmy.blahaj.zone 1 points 1 hour ago

Yeah, it's easy enough to configure it properly, I have it set up on all of my servers and my laptop to treat it as a network mount, not a local one, and to try to connect on boot, but not require it. But it took me a while to understand what it was doing to even look for a solution. So, hopefully that saves you time. 🙂