Creating Gdrive

I am having problems understanding the command and why there is no local "offline" copy viewable when network is down or command is not running.
I have the same issue with both the gdrive and onedrive.
The tokens work fine. If I let rclone run its course my mounted hard drive folders are indeed populated with a "mirror" of the gdrive and onedrive contents.
Gdrive is just on 50gb, Onedrive is less than 100mb.
However if I boot without the rclone commands active or if the network is down the mounted drives are empty. I was hoping to have a situation where a copy of the files reside on my HD no matter what and that rclone just syncronises the changes to and from the clouds as files are modified.

The command and config was copied from a webpage how to tutorial on gdrive setup Even tho it was successful, I really do not understand the process or how to create this "offline local copy".

Google Drive

Command in user crontab
@reboot rclone --vfs-cache-mode writes mount GoogleDrive: ~/GoogleDrive &

rclone v1.69.1

  • os/version: ubuntu 24.04 (64 bit)
  • os/kernel: 6.8.0-58-lowlatency (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.24.0
  • go/linking: static
  • go/tags: none

rclone config redacted
[GoogleDrive]
type = drive
scope = drive
token = XXX
team_drive =

[OneDrive]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business

Double check the config for sensitive info before posting publicly

I have not posted a log because the command works. I just need to understand how to modify it

1 Like

welcome to the forum,

rclone mount, on it own, does not transfer or access files at all.
some appplicaiton llike a file manager or word process requests a file, and rclone adds it to the mount.

in addition, when using --vfs-cache-mode writes, not all files accessed will ever touch the cache.


if you want to access the files in the cache, the mount command needs to run.


rclone sync, not rclone mount

1 Like

Thx Ill need to play a bit

so I left the @reboot cmd commented out for now
#@reboot rclone --vfs-cache-mode writes mount OneDrive: ~/OneDrive &

after booting I ran a
rclone sync OneDrive: ~/OneDrive

The local drive was populated
Of course it only gets updated when I run it again...I could use a 2 minute cronjob

Will need to test if its still there after a reboot.

1 Like

HI there. for clarification

I run this command once just to set things up, I guess it runs the config, sets up the token and creates the initial mount place

rclone --vfs-cache-mode writes mount OneDrive: ~/OneDrive &

I then run this in an every 2 minute cronjob

rclone sync OneDrive: ~/OneDrive

This seems to be dong what I expect... I just want to be sure Im not misunderstanding or missing soemthing

thankyou for your time