135
submitted 1 week ago* (last edited 6 days ago) by BonkTheAnnoyed to c/selfhosted@lemmy.world

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.

top 50 comments
sorted by: hot top controversial new old
[-] one_knight_scripting@lemmy.world 1 points 5 hours ago

So, I understand this is Ian only, I will leave out NextCloud.

I would personally say Ceph. This is a storage solution meant to be spread among a bunch of different hosts. Basically, it operates on RAID 5 principles AND replicated storage.

Personal setup: single host 12 ea. 10TB HDDs.

To start, it does go ahead and generates the parity data for the storage bucket. On top of that, I am running a X2 replicated bucket. Now since I am running a single host, this data is replicated amongst OSDs(read HDDs), but in a multiple host cluster it would be replicated amongst multiple hosts instead.

One of the benefits to an array like this is that other types of services are easily implemented. NFS overall is pretty good, and it is possible to implement that through the UI or command line. I understand that Samba is not your favorite, but that is also possible. Personally, I am using Rados to connect my Apache Cloudstack hypervisor.

I will admit, it is not the easiest to set up, but using docker containers to manage storage is an interesting concept. On top of that, you can designate different HDDs to different pools, perhaps you want your solid state storage to be shared separately. Ceph is also capable of monitoring your HDDs with smartctl.

Proper installation does give you a web UI to manage it, if some one of your skill even needs it. ;)

[-] maus@sh.itjust.works 17 points 6 days ago* (last edited 3 days ago)

NFS is still the standard. Were slowly seeing better adoption of VFS for things like hypervisors.

Otherwise something like SFTPgo or Copyparty if you want a solution that supports pretty much every protocol.

[-] possiblylinux127@lemmy.zip 1 points 5 days ago

I would say SMB is more the standard. It is natively supported in Linux and works a bit better for file shares.

NFS is better for server style workloads

[-] danhab99@programming.dev 6 points 6 days ago

I still use sshfs. I can't be bothered to set up anything else I just want something that works out of the box.

[-] BonkTheAnnoyed 1 points 6 days ago* (last edited 6 days ago)

I like the sound of that!

However it looks like has a lot of potential for a 'xz' style exploit injection, so I'll probably skip it.

From the project's README.md : The current maintainer continues to apply pull requests and makes regular releases, but unfortunately has no capacity to do any development beyond addressing high-impact issues. When reporting bugs, please understand that unless you are including a pull request or are reporting a critical issue, you will probably not get a response.

[-] danhab99@programming.dev 2 points 6 days ago

I am 100% open to exploring other equally zero effort alternatives if only I had the time CURSE being an adult (ノಠ益ಠ)ノ . Is there anything better I should use, hopefully using existing ssh keys please.

[-] billwashere@lemmy.world 8 points 6 days ago

NFS is still useful. We use it in production systems now. If it ain’t broke, don’t fix it.

And if you have a dedicated system for this, I’d look into TrueNAS Scale.

[-] CucumberFetish@lemmy.dbzer0.com 2 points 6 days ago

Truenas Scale works well as long as you don't want any dockers on it. Once you want to run docker images it is easier to install a VM on Truenas and run the docker from there than it is to try to set up custom "Apps"

[-] deltapi@lemmy.world 2 points 6 days ago

Wut? I've got a bunch of dockerhub images running on a scale box

[-] CucumberFetish@lemmy.dbzer0.com 1 points 5 days ago

It is doable, but it is a pain if the docker requires any special config like permanent storage. Getting nginx up and running for mTLS was especially annoying

[-] talkingpumpkin@lemmy.world 8 points 6 days ago

If it's for backup, zfs and btrfs can send incremental diffs quite efficiently (but of course you'll have to use those on both ends).

Otherwise, both NFS and SMB are certainly viable.

I tried both but TBH I ended up just using SSHFS because I don't care about becoming and NFS/SMB admin.

NFS and SMB are easy enough to setup, but then when you try to do user-level authentication... they aren't as easy anymore.

Since I'm already managing SSH keys all over my machines, I feel like SSHFS makes much more sense for me.

[-] possiblylinux127@lemmy.zip 1 points 5 days ago

I think ZFS send/receive requires root which can be an issue for security

[-] irotsoma 6 points 6 days ago

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 2 points 6 days ago

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

[-] irotsoma 2 points 6 days 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. 🙂

[-] zod000@lemmy.dbzer0.com 6 points 6 days ago

The fact that you say using NFS makes you old makes me feel like fucking Yoda

[-] BonkTheAnnoyed 3 points 6 days ago

I can't decide if I'm happy or disappointed that no one suggested I make a Beyowolf cluster.

[-] lambalicious@lemmy.sdf.org 3 points 6 days ago

You intendeth to mean Beowulf? I would mayhaps have seen one ere the break of my college time. Wouldst you tell me more about it?

[-] zod000@lemmy.dbzer0.com 3 points 6 days ago

haha that really brings me back.

[-] lka1988@lemmy.dbzer0.com 4 points 6 days ago

I use NFS for linking VMs and Docker containers to my file server. Haven't tried it for desktop usage, but I imagine it would work similarly.

[-] possiblylinux127@lemmy.zip 2 points 5 days ago

Samba or some sort of cloud like sync system like Sync thing or Nextcloud

[-] Treczoks@lemmy.world 5 points 6 days ago

Stick with NFS, and use e.g. rsync for backup. Or subversion, if you want to be super-safe.

[-] herseycokguzelolacak@lemmy.ml 2 points 5 days ago

I use a samba mount behind a VPN.

[-] possiblylinux127@lemmy.zip 1 points 5 days ago

You should take a look at webDAV

[-] frezik 5 points 6 days ago

Everyone forgets about WebDAV.

It's a little jank, but it does work on Windows. If you copy a file in, it doesn't show up in the file manager until you refresh. But it works.

It's also multithreaded, which isn't the case for SMB. This is especially good if you host it on SSDs.

[-] possiblylinux127@lemmy.zip 1 points 5 days ago

What do you mean SMB isn't multithreaded?

Samba has been multithreaded for a long time

[-] frezik 1 points 5 days ago

The connections aren't. This didn't matter much for spinning platters, but it does for SSDs.

[-] MangoPenguin 2 points 6 days ago

Sounds like NFS might still be the way to go for you.

For backups personally I use Restic and connect over SFTP via SSH, since that's just built in and doesn't need any configuration.

For more traditional file sharing I use WebDAV with SFTPGo, since I need windows and android compatibility too, and webdav is pretty easy to setup and use.

And I also use Syncthing for keeping some directories in sync between devices.

[-] HelloRoot@lemy.lol 2 points 6 days ago* (last edited 6 days ago)

I have SFTPgo in a docker container with attached storage. Can access it through many protocols, but on linux I mount it via WebDav.

Whats neat is that I can also share files/folders with either other registered users or with a password or download only link and it has a web gui for that.

[-] hexagonwin@lemmy.sdf.org 1 points 6 days ago

I use both samba and NFS (with freebsd) on the same disk for my freebsd, linux and win7 desktop machine. All works perfectly fine.

I'm running an rsync daemon for large transfers and use copyparty for easily grabbing files on phones etc.

[-] cmnybo@discuss.tchncs.de 51 points 1 week ago

NFS is the best option if you only need to access the shared drives over your LAN. If you want to mount them over the internet, there's SSHFS.

[-] fmstrat@lemmy.nowsci.com 2 points 6 days ago

My one change: I do SSHFS over LAN, because of guest machines and sniffing potential.

I do NFS on direct wire or on a confidently set up VLAN (maybe).

[-] BonkTheAnnoyed 31 points 1 week ago

See, this is interesting. I'm out here looking for the new shiny easy button, but what I'm hearing is "the old config-file based thing works really well. ain't broken, etc."

I may give that a swing and see.

[-] curbstickle@lemmy.dbzer0.com 25 points 1 week ago

I'm at the same age - just to mention, samba is nowhere near the horror show it used to be. That said, I use NFS for my Debian boxes and mac mini build box to hit my NAS, samba for the windows laptop.

[-] Bakkoda@sh.itjust.works 2 points 6 days ago* (last edited 6 days ago)

I've run Proxmox hosts with smb shares for literally a decade without issue. Performance is line speed now. Only issues I've ever had were operator error and that was a long time ago. SMB 3 works great.

load more comments (7 replies)
load more comments (9 replies)
load more comments
view more: next ›
this post was submitted on 29 Aug 2025
135 points (100.0% liked)

Selfhosted

51166 readers
953 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