Clone a Shared Drive to Another Shared Drive within the same Gsuite Domain

We have a client that is looking for a copy of their data. We currently use Shared Drives in Google Workspace to store all of a clients data the shared Drive would be called "_ClientName"

If I created a new shared drive called "_ClientNameCopy" and wanted to copy all the contents from one to the other I could use just the copy command but that requires downloading of the data it seems then reuploading it. Also any google docs get converted to Microsoft docs which we don't want.

I was reading up on the --drive-shared-with-me but this does not seem like it is meant for copy from Shared Drive to Shared Drive. Am I mistaken here or how would I do a transfer in the cloud from one folder to the other?

The command I tried was
rclone.exe copy _ClientNameCopy:\ _ClientNameCopy:\ -P --drive-shared-with-me

It just finishes without copying anything

hello and welcome to the forum,

when you posted, you were asked for information, so we can help you.

I am more asking how to use this command then I am saying there is an issue with it. I can post all that other information but it's not required to answer the question in my opinion. I am looking to clone a Google Shared Drive to another Shared Drive from within the same Workspace/Gsuite domain. Am I using this command right..

On the surface that may seem correct, but unfortunately those answers depend on:

  • your version
  • your rclone.conf

A debug log helps and shows the full command and output to reference.

That's why we have the template.

sure sorry
Version:

C:\rclone>rclone version
rclone v1.53.1
- os/arch: windows/amd64
- go version: go1.15

Command Output

    C:\rclone>rclone.exe copy _Client:\ _ClientCopy:\ -P --drive-shared-with-me -vv
2020/10/09 10:50:24 DEBUG : rclone: Version "v1.53.1" starting with parameters ["rclone.exe" "copy" "_Client:\\" "_ClientCopy:\\" "-P" "--drive-shared-with-me" "-vv"]
2020/10/09 10:50:24 DEBUG : Using config file from "C:\\Users\\user1\\.config\\rclone\\rclone.conf"
2020/10/09 10:50:24 DEBUG : Creating backend with remote "_Client:\\"
2020/10/09 10:50:24 DEBUG : fs cache: renaming cache item "_Client:\\" to be canonical "_Client:"
2020/10/09 10:50:24 DEBUG : Creating backend with remote "_ClientCopy:\\"
2020/10/09 10:50:24 DEBUG : fs cache: renaming cache item "_ClientCopy:\\" to be canonical "_ClientCopy:"
2020-10-09 10:50:24 DEBUG : Copy: Loaded invalid token from config file - ignoring
2020-10-09 10:50:24 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-
2020-10-09 10:50:24 DEBUG : Copy: Saved new token in config file
2020-10-09 10:50:25 DEBUG : Google drive root '': read info from team drive "_Client"
2020-10-09 10:50:25 DEBUG : Google drive root '': read info from team drive "_ClientCopy"
2020-10-09 10:50:25 DEBUG : Google drive root '': Waiting for checks to finish
2020-10-09 10:50:25 DEBUG : Google drive root '': Waiting for transfers to finish
2020-10-09 10:50:25 INFO  : There was nothing to transfer
Transferred:             0 / 0 Bytes, -, 0 Bytes/s, ETA -
Elapsed time:         1.8s
2020/10/09 10:50:25 INFO  :
Transferred:             0 / 0 Bytes, -, 0 Bytes/s, ETA -
Elapsed time:         1.8s

2020/10/09 10:50:25 DEBUG : 8 go routines active

C:\rclone>

Config Copy

[_Client]
type = drive
scope = drive
token = {"access_token":"MASKED FOR SECURITY","token_type":"Bearer","refresh_token":"MASKED FOR SECURITY","expiry":"2020-10-09T10:52:15.6447819-04:00"}
team_drive = 0AIAGIgxnwHCPUk9PVA
root_folder_id = 

[_ClientCopy]
type = drive
scope = drive
token = {"access_token":"MASKED FOR SECURITY","token_type":"Bearer","refresh_token":"MASKED FOR SECURITY","expiry":"2020-10-09T11:50:23.2762888-04:00"}
team_drive = 0AM9rqJLo_hNgUk9PVA
root_folder_id = 

hi,

i am not a gdrive expert and this will not solve the problem.
you might want to use https://rclone.org/drive/#drive-server-side-across-configs

I never saw this switch... I am testing and will get back to you!

The first thing to do is to make sure that rclone ls _Client: lists the team drive.

I suspect from your log above that it will just be an empty directory listing. So is this listing the correct team drive?

rclone.exe copy _Client:\ _ClientCopy:\ -P --drive-server-side-across-configs=true

This worked perfectly fine and its in the process. I went from ETA 1w to ETA 2 hours!!!

1 Like

great!
let us know if the process completes or not

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