Set-- can vfs-cache-max-age 100y keep cache for 100 years?

What is the problem you are having with rclone?

Can I use 100y to make it keep 100 years when I set --vfs-cache-max-age?
Do all supported formats include w (week) M (Month) y (year) ?
Please help me to see if there is anything wrong with my command. My system is Windows.

Run the command 'rclone version' and share the full output of the command.

rclone v1.66.0

  • os/version: Microsoft Windows 11 Home 23H2 (64 bit)
  • os/kernel: 10.0.22631.3737 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.22.1
  • go/linking: static
  • go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

OSS

The command you were trying to run (eg rclone copy /tmp remote:tmp)

./rclone mount onecode:onecode  X: --cache-dir ./rclone_cache --vfs-cache-max-age 100y --no-checksum --no-modtime --rc --rc-addr 127.0.0.1:5572 --rc-no-auth --vfs-cache-mode full

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[onecode]
type = s3
endpoint = http://127.0.0.1:7677
acl = public-read-write
storage_class = STANDARD
provider = Other
env_auth = false
### Double check the config for sensitive info before posting publicly

Yes 100y is valid parameter.

--vfs-cache-max-age duration           Max time since last access of objects in the cache (default 1h0m0s)

And here you are duration specification.

Thank you very much!
I saw this document, because I flipped through everyone's questions in the past, they all used 100000h, so I reconfirmed it here.

I found a problem: when I executed with the above instruction, I loaded a 500M file, and after a period of time, the corresponding file in the cache folder disappeared?

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