Hey #linux #debian people: it’s occurring to me that #rclone might not actually be the best way to do what I’m doing. So: if you had two Debian servers on a vpn, both with 1 gig fiber links to the internet, in cities 100 km apart, how would you go about having shared filesystems between them? Right now I am using rclone mount with sftp. Is there a less janky way?
@fastfinge what kind of files?
I would consider syncthing as an option in some scenarios. It requires more disk space (files are synchronized) and potentially can have conflicts. But on the other hand, you can continue using files if the connection is broken, and latency is 0.
Otherwise sshfs or an sftp mount could be fine.
There are more sophisticated solutions, if you have very demanding requirements.
@yo The issue with syncthing is that one machine has 200 tb of storage, and the other has 2 tb. So syncing isn't an option. :-)
@fastfinge ah, then I'd suggest NFSv3 over the VPN (I missed that you had already mentioned you had a VPN).
I use NFSv3 over a VPN and it works quite well. You could also use Samba/CIFS if you want to share with other operating systems.
Traditionally, local file systems do not perform well over the Internet and are unsafe. But a VPN takes care of security, and with fiber, I find NFS and Samba decent.