Rclone google drive mount

What is the problem you are having with rclone?

I am having issues mounting the google drive.

What is your rclone version (output from rclone version)

rclone v1.55.1

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Ubuntu 20.04 LTS

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

Google Drive

The rclone config contents with secrets removed.

[google]
type = drive
client_id = HIDDEN
client_secret = HIDDEN
scope = drive
token = HIDDEN
chunk_size = 64M
skip_gdocs = true
list_chunk = 1000

Docker Compose

  rclone:
    image: hotio/rclone
    container_name: rclone
    environment:
      - RCLONE_CONFIG=/config/rclone.conf
    security_opt:
      - apparmor:unconfined
    cap_add:
      - SYS_ADMIN
    devices:
      - /dev/fuse
    volumes:
      - /media/google:/google:shared
      - /home/ajhorvath/rclone:/config

I would really appreciate if you can help me with my compose.

Thanks

What's the error you are getting?

I am not seeing any error but when I run docker logs rclone. I get the following

Doesn't seem like you are running a command. What are you trying to do?

I had rclone running via script

curl https://rclone.org/install.sh | sudo bash

Now I am trying to run on docker so I copied the rclone.conf file from my existing setup and add into my new system.

But not sure what I need to do to mount the google drive.

Thank you

Thank you I sorted it via command: as you mentioned

command: mount "google:" "/media/google --allow-other --uid "1000" --gid "1000" --umask "022"

But not sure how can I add extra extra flags in docker rclone.conf which I used to have in my rclone.service file previously?

Like these

  --allow-other \
  --buffer-size=64M \
  --config=/home/ajhorvath/.config/rclone/rclone.conf \
  --dir-cache-time=168h \
  --drive-chunk-size=64M \
  --drive-skip-gdocs \
  --rc \
  --rc-web-gui \
  --syslog \
  --timeout=10m \
  --umask=002 \
  --vfs-read-chunk-size-limit=2048M \
  --vfs-read-chunk-size=64M \

Just like you did above as you add them to the command line.

Quite a few examples in the forums.

Is it possible to add them into rclone.conf instead of command? Is there any example I can follow?

Check out:

https://rclone.org/docs/#environment-variables

Thanks Animosity022 for the link. I will read through now.

I read through the documentation but cannot find a way to adopt these flags into rclone.conf

  --dir-cache-time=168h \
  --drive-chunk-size=64M \
  --drive-skip-gdocs \
  --rc \
  --rc-web-gui \
  --timeout=10m \
  --vfs-read-chunk-size-limit=2048M \
  --vfs-read-chunk-size=64M \

I am sure I am missing it but would apprecaite if you can help me with this.

Thats my rclone.conf

[google]
type = drive
client_id = HIDDEN
client_secret = HIDDEN
scope = drive
token = HIDDEN
root_folder_id = HIDDEN

You need to use environment variables which is why I linked it.

I am sorry you mean using environment variables in config file?

Like that and you'd have more if you wanted to use that over having them on the command line. Really your choice and I'd just leave them on the command line if it was me.

Thanks Animosity and apologise for taking your time.

Basically I was trying to put everything in rclone.conf instead of in compose so I can just restart container instead of recreating the image. I thought it was possible to do it in rclone.conf but if not then I can leave it in command:

Why don't you install rclone directly in ubuntu?

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