What better for mounting local network storage on Linux? Samba, WebDAV or rclone using SFTP?

@matrix NFS if you're just doing linux-linux (or any unix) - it's the fastest but least secure (literally depends on your network being secure, unless you want to mess with kerberos). Samba is a bit more secure and a bit more cross-compatible but might have issues. WebDAV and FTP((E)S) are not really meant for "mounting" but can work, but with other protocols those are usually used for remote access. SFTP i.e. file transfer over SSH, is THE slowest, compatibility on other devices can be worse than FTP((E)S). Lastly, if you're just mounting a folder on one device ever and never going to share it - iSCSI is probably the way to go.

Lastly - word of advice - don't share same directory using multiple protocols at same time (especially if one of those protocols is NFS), it's doable but not very stable, and different servers will get really confused about ACLs.
Follow

@hj I want to mount Hetzner's storage box so I can't use NFS.

· · Web · 2 · 0 · 1
@matrix for hetzner boxes just use CIFS aka samba (i think), that's what I do for storage on tube.ebin.club . Hetzner boxes aren't really block storages or filesystems, more like file storages, so their inner working is closer to FTP functionally. NFS is closer to block storage and being well an actual filesystem.

iSCSI is actual networked block storage, i.e. your PC will be writing raw data and you can use any actual filesystem.

FTP/CIFS/WebDAV/SFTP are just a protocol to access bunch of files on any remote filesystem.

NFS fits somewhere weirdly in between, letting you access remote filesystem rather than just bunch of files. It's... weird.
@matrix @matrix @hj oh! In that case probably SSHFS.

Might also look into something that's an abstraction layer to encrypt the files at rest
@matrix @matrix @hj Something like eCryptfs should be able to do it.

However you mount it, it'll act as an abstraction layer. It'll encrypt the files before sending them to the storage backend and decrypt them after retrieving them all completely transparent to you.
Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.