What is the problem you are having with rclone?
I'm trying to mount my Google shared drives to reflect the behavior of previous version of Google Drive client on Mac which as been discontinued to the File Provider api which makes the tool impossible to use with large files.
It's seems hard to do as using rclone backend drives -o config GoogleDrive:
will replace invalid characters so the shared drive directories won't have the right names.
So I finally resolved to mount the shared drives individually when I need them to the good path /Volumes/GoogleDrive/Shared drives/[my shared drive] with special characters
. But I don't find any else method than writing a script which create the directory, chmod it to the current user, and run rclone mount command.
However, in this discussion on github, I found this example using rclone backend drives -o combine drive:
as command in a combine
conf block, but I couldn't get it to work as combine
need upstreams and this command return a json with the list of shared drives but with no reference to the drive.
rclone backend drives -o combine GoogleDrive:
[
{
"id": "0AJnhQeEpQwXafk9PVA",
"kind": "drive#drive",
"name": "[Admin] Shared drive 1"
},
{
"id": "0qMnBRetpo2jxUk9PVA",
"kind": "drive#drive",
"name": "[Admin] Shared drive 2"
},
...
I think I can use this command in a script to mount the specific shared drive using --drive-team-drive in the rclone mount command (not tried it yet), but to be sure, there is no way to use this command in the configuration file as showed in the github discussion ?
Also, I'm surprised that it doesn't seem possible to configure mount point and cache in the rclone config file, I suppose this is deliberated to not implement it, but having this possibility would be convenient to avoid to script external tool to manage mount point and cache, so did I miss something about it?
Run the command 'rclone version' and share the full output of the command.
rclone v1.63.1
- os/version: darwin 12.6.8 (64 bit)
- os/kernel: 21.6.0 (x86_64)
- os/type: darwin
- os/arch: amd64
- go/version: go1.20.6
- go/linking: dynamic
- go/tags: cmount
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
)
rclone lsd "All Team Drives":
The rclone config contents with secrets removed.
[GoogleDrive]
type = drive
client_id = redacted
client_secret = redacted
scope = drive
acknowledge_abuse = true
keep_revision_forever = true
token = redacted
root_folder_id =
# This part doesn't work at is
[All Team Drives]
type = combine
command = rclone backend drives -o combine GoogleDrive:
A log from the command with the -vv
flag
rclone -vv lsd "All Team Drives":
2023/08/11 10:01:16 DEBUG : rclone: Version "v1.63.1" starting with parameters ["rclone" "-vv" "lsd" "All Team Drives:"]
2023/08/11 10:01:16 DEBUG : Creating backend with remote "All Team Drives:"
2023/08/11 10:01:16 DEBUG : Using config file from "/Users/me/.config/rclone/rclone.conf"
2023/08/11 10:01:16 Failed to create file system for "All Team Drives:": combine can't point to an empty upstream - check the value of the upstreams setting