I’m wondering if a specific workflow is possible with rclone. I have a remote system that I’m using for building and running some code I’m working on. I’ve been using vim over SSH, but the latency is pretty killer. What I’d love to be able to do is edit files locally and have them synced instantly to the remote machine.
What I would love to be able to do is mount a FUSE folder locally that mirrors a remote folder. Any changes I make locally are immediately written though to the local file system, and then asynchronously synced to the remote. And remote changes are also automatically synced locally.
Is anything like this possible with rclone?
I’ve already looked into syncthing and lsyncd, but they aren’t designed for instantaneous synching.
I am using it for exactly workflow you described. Remote system is PITA to work over ssh or some GUI remote access. I prefer my local editor and tools.
I have used syncthing in the past. My main complaint is that files don’t sync immediately. I need a tight development loop where I save a file, switch to my SSH window, and run a compilation command on the remote machine, with the updated files already there.
Not sure what is immediately for you but by default Syncthing syncs files after 10s (configurable). Either it was different with some old versions or specific to your OS where FS watchers did not work.
I have tried rclone as well and no configuration could beat Syncthing. rclone does not have filesystem notifications implemented which means that polling does not work for local FS.
Only for very specific situation when I work on multiple source files locally but then have to test them on remote machine with problematic access. I have tried multiple ways and found Syncthing least problematic. Filesystem notifications triggered sync works rock solid but this is probably because of good OS support for such feature (macOS). I use filesystem notifications myself to trigger launchd jobs (systemd like thing) when specific file or directory changes. So for example I can run some out of the schedule backup when very important data changes.
On top of this I do not trust `rclone mount/nfsmount` 100% (at least on macOS) Especially when I have to edit files.