Is there a way for rclone to load everything and keep it loaded?

What is the problem you are having with rclone?

When rclone loads in from systemctl or when I manually mount it, it loads in, but when I close the file explorer or go to a file in my google drive and go back everything has to load back in again. Is there a way to force load everything on system start and keep it loaded? I don't mind if it even takes up some of my storage space if necessary.

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

rclone v1.67.0

  • os/version: endeavouros (64 bit)
  • os/kernel: 6.10.2-arch1-1 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.22.4
  • go/linking: static
  • go/tags: none

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)

/usr/bin/rclone mount gdrive: /home/ivan/Google\ Drive/ --config /home/ivan/.config/rclone/rclone.conf --allow-non-empty

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

[gdrive]
type = drive
scope = drive
token = XXX
team_drive =

You explicitly do not use any caching, so you've got what you ask for:)

Read VFS file caching docs.

Enable cache:

--vfs-cache-mode full

set max disk space you want to use for caching:

--vfs-cache-max-size SizeSuffix   Max total size of objects in the cache (default off)

also can increase validity of items downloaded into cache by setting:

--vfs-cache-max-age duration   Max time since last access of objects in the cache (default 1h0m0s)
--dir-cache-time Duration   Time to cache directory entries for (default 5m0s)

For best performance configure your own client_id and re-create your gdrive remote config.

1 Like

Hey, thanks again for helping me out!

Quick question isn't it better to decrease cache-time instead of increasing it?
Are these good numbers?

--vfs-cache-mode full --vfs-cache-max-size 15G --vfs-cache-max-age 24h --dir-cache-time 2m

Nope. Google drive is polling remote which means that any changes on the remote will be announced automatically to your mount.

“dir-cache-time” invalidates cache listing regardless of anything.

In your case I would set both to forever e.g. 9999h

1 Like

Also maybe add:

--vfs-refresh

It will refresh cash listing (not content) after you start your mount.

1 Like

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