"mount" and "serve" the same remote simultaneously?

I have a workflow where I'd like to rclone mount a remote so it's available on a local FUSE filesystem, and simultaneously rclone serve webdav so it's available over HTTP.

I see that rclone serve webdav makes use of the VFS layer and has some options in common with rclone mount, so I was wondering if it's possible to do them both in such a way that the VFS caching is shared between them.

(One of the reasons I think this would be cool is because it would hopefully allow me to set inotify watches in the mounted filesystem, and pick up events when files are created via an HTTP client...)

What is your rclone version (output from rclone version)


Which cloud storage system are you using? (eg Google Drive)


You'd have two rclone instances running for a serve and a mount as there isn't a 'combo' button.

I have this same setup of sorts. On my VPS, I mount and I serve (WebDAV/http).

What I decided to do was to mount with full caching and then serve the local disk including the mount.

I didn't want to devote double the cache and API calls. And this gives more consistent directories. The local disk doesn't really need the cache* and then I have access to the mounts as well. The mount does the caching!

I honestly don't even need to use rclone to serve the last part but I like that rclone's WebDAV server is also an http server and it works well for me.

*This is not always true depending on how files are used but for me, I am mostly reading.

Thanks @jwink3101, serving the mounted dir was a good idea.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.