Passing mount options (like vfs-cache-mode) when using "rclone rc mount/mount"

OK here is the next version

v1.52.2-239-g7d78817d-fix-vfs-rc-beta on branch fix-vfs-rc (uploaded in 15-30 mins)

This has mountOpt and vfsOpt support. THis has also made the mount options globally settable. You can read the mount options using mount/listmounts too.

This takes the following parameters

  • fs - a remote path to be mounted (required)
  • mountPoint: valid path on the local machine (required)
  • mountType: One of the values (mount, cmount, mount2) specifies the mount implementation to use
  • mountOpt: a JSON object with Mount options in.
  • vfsOpt: a JSON object with VFS options in.

Eg

rclone rc mount/mount fs=mydrive: mountPoint=/home/<user>/mountPoint
rclone rc mount/mount fs=mydrive: mountPoint=/home/<user>/mountPoint mountType=mount
rclone rc mount/mount fs=TestDrive: mountPoint=/mnt/tmp vfsOpt='{"CacheMode": 2}' mountOpt='{"AllowOther": true}'

The vfsOpt are as described in options/get and can be seen in the the
"vfs" section when running and the mountOpt can be seen in the "mount" section.

rclone rc options/get
2 Likes