I want to convert below rclone mount command to rclone rc options/set
rclone mount \
--config=/home/ubuntu/.config/rclone/rclone.conf \
--allow-other \
--default-permissions \
--no-modtime \
--drive-use-trash \
--uid=1001 \
--gid=1002 \
--cache-dir=/media/local/hdd/.rclone_cache \
--dir-cache-time=1000h \
--vfs-cache-max-age=10000h \
--vfs-cache-max-size=50000G \
--vfs-read-ahead=128M \
--vfs-cache-mode=full
so far I have narrow it down to
rclone rc options/set \
--rc-user 'username' --rc=pass 'password' \
--json '{"main": {"Timeout": 3600000000000}, "mount": {"AllowOther": true, "DefaultPermissions": true}, "vfs": {"NoModTime": true, "UID": 1001 , "GID": 1002, "DirCacheTime": 3600000, "CacheMaxAge": 36000000, "CacheMaxSize":
53687091200000,"ReadAhead": 134217728, "CacheMode": 4}, "log": {"File": "/var/log/rclone/rclone-mount.log"}}'
I ran rclone rc options/get and have following questions.
- how to specify --drive-use-trash and --cache-dir=/media/local/hdd/.rclone_cache can not find appropriate options in json.
- how to convert value of --dir-cache-time=1000h --vfs-cache-max-age=10000h to proper value, does Json expect values of DirCacheTime and CacheMaxAge under VFS in seconds?
- how to convert value of --vfs-cache-max-size=50000G and --vfs-read-ahead=128M to proper value, does Json expects values of CacheMaxSize and ReadAhead in bytes?
- --vfs-cache-mode=full ( "CacheMode": 4, is this correct? )
Run the command 'rclone version' and share the full output of the command.
rclone v1.61.1
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 5.15.0-60-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.19.4
- go/linking: static
- go/tags: none