The NextCloud official client on Linux does support virtual files in a kind of rudimentary way, by adding a .nextcloud as a suffix on all the files that have not been downloaded yet. The mechanism is not as transparent as the other OSes (Windows, Mac, even Android with SAF!) and I was abandoning the idea of syncing my whole cloud while keeping offline copies of a small subset of selected files, until I figured out that the mount
command of rclone
has VFS options.
I have read the documentation and tried the following command:
rclone mount hetzner: ~/mymount --vfs-cache-mode full --vfs-cache-max-age 24h0m0s --vfs-cache-poll-interval 5s -v
I noticed a few things:
- It takes some time (a few minutes) to mark a cached file as stale when a change on mirror occurs. It seems that --poll-interval is unsupported for WebDAV.
- Opening a folder in Dolphin (KDE's file manager) triggers lots of download, because of file thumbnails
- There's no way to know if a file has been downloaded, except by looking at the ~/.cache/rclone/ (And that still would not be complete, since AFAICU files can be partially downloaded)
I'd like to know if rclone mount
with vfs options is the right tool to get an experience similar the Nextcloud client for Windows, where one can get a quick propagation of changes and selective offline access. If it is possible, what are some useful settings to achieve this?
Thanks in advance