--vfs-cache-max-age infinite

rclone v1.55.1
ubuntu 20.04 lts server
google cloud storage

parameters:
RCLONE_CACHE_DIR=/var/cache/gcloud/rclone
RCLONE_VFS_CACHE_MODE=full
RCLONE_VFS_CACHE_MAX_AGE=0
RCLONE_VFS_MAX_SIZE=1024G
RCLONE_VFS_POLL_INTERVAL=24h
RCLONE_VFS_WRITE_BACK=12h

command:
rclone mount gcloud:test /gcloud -vv

the ploblem:
each 24h poll the cache for stale objects is cleaning all the data. That is not respecting RCLONE_VFS_MAX_SIZE=1024G and clearing all data that has already sent to backend.

Is there a way to disable RCLONE_VFS_CACHE_MAX_AGE ? set it to infinite and respect only RCLONE_VFS_MAX_SIZE ?

Set it to 999999999999999h.

1 Like

no other way?

is there a tag for month or years?

That's a pretty easy way there as it's in hours. Just add a longer one if you want something crazy long and if you server is running a mount for years, I'd imagine you've had other issues.

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