What is the problem you are having with rclone?
I would like to run a single instance of "rclone rcd", manage multiple mounts with "rclone rc mount/mount" and still provide parameters like --vfs-cache-mode for the individual mounts. I've tried both the command line and JSON-object way, but I can't get rclone to recognize the extended mount options when running it this way.
The reason is I'm running a handful of mounts and would prefer central control through a single port, instead of running one instance each.
Any help is appreciated.
What is your rclone version (output from rclone version
)
(note: latest rclone git version installed on Gentoo due to testing the vfs-cache-mode full changes. Current checkout v1.52.2-212-g80d2f381)
rclone v1.52.2-DEV
- os/arch: linux/amd64
- go version: go1.14.2
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Gentoo Linux, 64 bit
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone rcd --rc-user=USER --rc-pass=PASS
rclone rc mount/mount --rc-user=USER --rc-pass=PASS fs=drive_YYYY: mountPoint=/path/to/mountpoint/YYYY -a allow-other -o vfs-cache-mode=full -o cache-dir=/path/to/cachedir/ -o vfs-cache-poll-interval=20m -o vfs-cache-max-age=8760h -o attr-timeout=8700h -o dir-cache-time=8760h -o poll-interval=30s
and alternatively as JSON:
rclone rc mount/mount --rc-user=USER --rc-pass=PASS --json '{ "fs":"drive_YYYY:", "mountPoint":"/path/to/mountpoint/YYYY", "vfs-cache-mode":"full", "cache-dir":"/path/to/cachedir/", "vfs-cache-poll-interval":"20m", "vfs-cache-max-age":"8760h", "attr-timeout":"8700h", "dir-cache-time":"8760h", "poll-interval":"30s" }'
The rclone config contents with secrets removed.
[drive_YYYY]
type = drive
scope = drive
token = ...
client_id = ...
client_secret = ...
team_drive = ...
server_side_across_configs = true
A log from the command with the -vv
flag
Commandline options version:
2020/07/14 03:09:46 DEBUG : rc: "mount/mount": with parameters map[arg:[allow-other] fs:drive_YYYY: mountPoint:/path/to/mountpoint/YYYY opt:map[attr-timeout:8700h cache-dir:/path/to/cachedir dir-cache-time:8760h poll-interval:30s vfs-cache-max-age:8760h vfs-cache-mode:full vfs-cache-poll-interval:20m]]
2020/07/14 03:09:46 DEBUG : Google drive root '': Mounting on "/path/to/mountpoint/YYYY"
2020/07/14 03:09:46 DEBUG : Google drive root '': Re-using VFS from active cache
2020/07/14 03:09:46 DEBUG : Mount for Google drive root '' created at /path/to/mountpoint/YYYY using mount
2020/07/14 03:09:46 DEBUG : rc: "mount/mount": reply map[]: <nil>
2020/07/14 03:09:46 DEBUG : : Root:
2020/07/14 03:09:46 DEBUG : : >Root: node=/, err=<nil>
JSON object version:
2020/07/14 03:06:58 DEBUG : rc: "mount/mount": with parameters map[attr-timeout:8700h dir-cache-time:8760h fs:drive_YYYY: mountPoint:/path/to/mountpoint/YYYY poll-interval:30s vfs:map[cache-dir:/path/to/cachedir vfs-cache-max-age:8760h vfs-cache-mode:full vfs-cache-poll-interval:20m]]
2020/07/14 03:06:58 DEBUG : Google drive root '': Mounting on "/path/to/mountpoint/YYYY"
2020/07/14 03:06:58 DEBUG : Google drive root '': Re-using VFS from active cache
2020/07/14 03:06:58 DEBUG : Mount for Google drive root '' created at /path/to/mountpoint/YYYY using mount
2020/07/14 03:06:58 DEBUG : rc: "mount/mount": reply map[]: <nil>
2020/07/14 03:06:58 DEBUG : : Root:
2020/07/14 03:06:58 DEBUG : : >Root: node=/, err=<nil>