I have a Shared Drive that has Shortcuts to other Shared Drives in my account (which I own, too).
Mounting the Drive with all the shortcuts is a big problem because changes don't appear in the mount.
Poll changes won't detect changes on a different drive - we only poll the base drive. Even if it was a shortcut within the same drive, I'm not sure whether the updates would work properly....
but this makes a shortcut very useless in a mount.
Would it be possible to add a option to make polling updates to Shared Drives in the same Drive possible?
Maybe this is not possible for shortcuts which link outside of the account, but maybe for Shared Drives in the same account.
If this is not possible at all, maybe you should add a warning to rclone mount
Run the command 'rclone version' and share the full output of the command.
rclone v1.58.0
os/version: Microsoft Windows Server 2022 Standard 21H2 (64 bit)
os/kernel: 10.0.20348.740 (x86_64)
os/type: windows
os/arch: amd64
go/version: go1.17.8
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)
Would you be willing to name all the folder IDs you wanted polled? If not, rclone would have to traverse the entire remote looking for shortcuts which would be a pain.
Is it not possible for rclone to get the ID of the shortcutted folder?
I don't know exactly what Google responds with, but I don't think Google would miss out on that.
But yeah, if not possible in any other way, I wouldn't mind setting the IDs of the polled folders manually.
It is, but rclone would have to traverse the entire drive to find the shortcuts first, which would be very time consuming on startup.
I just had a look at the API for this
It looks like it only works if you give it a shared drive (team drive) ID. If you leave the ID out then you get changes for normal google drive. So you can't give it a folder ID.
So you'd need to give it IDs of shared drives.
This would make rclone's job very hard..
What you want is something more like the combine backend (currently still in development here Add new `Combine` Remote · Issue #5600 · rclone/rclone · GitHub ) and use this to mount the relevant shared drives. I don't think this supports changenotify yet, but it could relatively easily.
Ah, I see, makes sense.
I tried the beta and it's exactly what I'm looking for
There is one problem tho:
I have crypted files in my Shared Drives, but the Shared Drives themself don't have crypted names.
The crypt works fine on the AllDrives and it can also decrypt the Shared Drive if it has a crypted name, but the problem is that I don't see the Shared Drives with the unencrypted names.
Dumb question, but is there a way to bypass renaming all my Shared Drives, or is this necessary?
Thank you so much, will donate to you if money is left over
rename (in the config file only) the remotes into their crypted names. You can find the encrypted names using rclone backend encode secret: "unencrypted name"
change the aliases to point to a crypted version of each drive
Assuming your crypt remote is called secret: and your main drive remote is called drive:
[ssasdds]
type = alias
remote = secret,remote="drive,team_drive=0AXXXXXXX,root_folder_id=:":
Now that I had more time to test it, there is still a problem with polling.
It says that it polls the root (which is hardcoded afaict), but the mount doesn't show any changes.
I mounted it with the following command (not crypted):
[remote_acc]
type = drive
client_id = REDACTED.apps.googleusercontent.com
client_secret = REDACTED
scope = drive
token = {"access_token":"REDACTED","token_type":"Bearer","refresh_token":"REDACTED","expiry":"REDACTED"}
root_folder_id =
[_Test]
type = alias
remote = remote_acc,team_drive=0AREDACTED,root_folder_id=:
[AllDrives2]
type = combine
upstreams = "_Test=_Test:"
The renaming of the Shared Drives via config works very well tho!
Edit:
I oversaw that you wrote "I don't think this supports changenotify yet, but it could relatively easily.".
So, does Google have to add it in or do you have to add it to rclone?
Would be very nice if that is possible.
Its something I need to add to the combine backend. Actually I looked at the code and it looks like I added it already, it just doesn't work properly yet!
I've attempted to fix it here - please give it a go!