Turn off --vfs-cache-max-age

rclone v1.55.1
ubuntu 20.04 lts server
google cloud storage

parameters:
RCLONE_CONFIG=/etc/rclone.conf
RCLONE_CACHE_DIR=/var/cache/rclone
RCLONE_VFS_CACHE_MODE=full
RCLONE_VFS_CACHE_MAX_AGE=off
RCLONE_VFS_MAX_SIZE=1024G
RCLONE_VFS_POLL_INTERVAL=24h
RCLONE_VFS_WRITE_BACK=12h
RCLONE_DIR_CACHE_TIME=12h
RCLONE_POLL_INTERVAL=6h
RCLONE_ATTR_TIMEOUT=1h
RCLONE_TRANSFERS=16
RCLONE_VFS_USED_IS_SIZE=true

command:
rclone mount gcloud:test /gcloud -vv

error:
Invalid value for environment variable "RCLONE_VFS_CACHE_MAX_AGE" when setting default for --vfs-cache-max-age: time: invalid duration "off"

is there a way to turn off --vfs-cache-max-age ?

You want to set it to 0.

felix@gemini:~$ export RCLONE_VFS_CACHE_MAX_AGE=0
felix@gemini:~$ rclone mount gcrypt: /home/felix/test -vv
2021/04/26 17:33:44 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2021/04/26 17:33:44 DEBUG : rclone: Version "v1.55.1" starting with parameters ["rclone" "mount" "gcrypt:" "/home/felix/test" "-vv"]
2021/04/26 17:33:44 DEBUG : Creating backend with remote "gcrypt:"
2021/04/26 17:33:44 DEBUG : Creating backend with remote "GD:crypt"
2021/04/26 17:33:45 DEBUG : Encrypted drive 'gcrypt:': Mounting on "/home/felix/test"
2021/04/26 17:33:45 DEBUG : : Root:
2021/04/26 17:33:45 DEBUG : : >Root: node=/, err=<nil>
^C2021/04/26 17:33:49 INFO  : Signal received: interrupt
2021/04/26 17:33:49 INFO  : Exiting...
1 Like

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