Any way to Improve Speed/ Avoid time Outs?

24 views
Skip to first unread message

Zachary DiFonzo

unread,
Dec 5, 2025, 2:17:22 PM (2 days ago) Dec 5
to GAM for Google Workspace
I have two domains and I need to copy the data from User's MyDrive in Domain A into Domain B. Users have an account in Domain A and B - these are separate GWS tenants.

Domain A is the source
Domain B is the destination

Here is the way I am executing this (each bullet is its own GAM command)
  1. Create a Shared Drive In Domain B (The destination) 
  2. Add the user's acct from Domain A and Domain B as Manager to the Shared Drive
  3. Copy data from Domain A Acct's MyDrive to the Domain B owned Shared Drive
The good news, this works, no major errors
However, with some of the MyDrives that have a lot of data , its moving dog slow or its timing out. 

My question:  is there a more effective way to copy the files between the domains? I have about 120 users I need to run this against, and about 20 have more than 50GB of files. Could it be hitting API limits? Again I have no errors 

Here are my commands.

Command 1 - Create Drive and Assign Internal User

gam redirect csv ./SharedDrivesCreated.csv multiprocess csv SharedDriveNames.csv gam user "~User" create shareddrive "~Name" csv addcsvdata primaryEmail "~primaryEmail"


Command 2 - Share Newly Created drive with External User

gam redirect stdout ./SharedDrivesAccess.csv multiprocess redirect stderr stdout csv SharedDrivesCreated.csv gam add drivefileacl "~id" user "~primaryEmail" role organizer


Command 3 - Copy User MyDrive content to Dedicated Share  Drive 

gam redirect stdout ./files-copied.csv redirect stderr ./files-error.csv csv ./SharedDrivesCreated.csv gam user "~primaryEmail" copy drivefile root teamdriveparentid "~id" mergewithparent true recursive


Ross Scroggs

unread,
Dec 5, 2025, 2:30:55 PM (2 days ago) Dec 5
to google-ap...@googlegroups.com
Send me a private Meet/Zoom invitation, we;'l speed up the copy and you can publish the result.

Ross
----
Ross Scroggs



--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/8bdabc0d-f551-427f-aee3-ce9c9a4c1f3bn%40googlegroups.com.

Ross Scroggs

unread,
Dec 5, 2025, 2:54:22 PM (2 days ago) Dec 5
to google-ap...@googlegroups.com
Here's a first cut.

Command 3 - Get top level MyDrive items for users

gam redirect csv ./TopLevelMyDriveItems.csv multiprocess redirect stderr - multiprocess  csv ./SharedDrivesCreated.csv gam user "~primaryEmail" print filelist query "'root' in parents" fields id,name,mimetype addcsvdata SharedDriveId "~id"


Command 4 - Copy User MyDrive  content to Dedicated Share  Drive

gam redirect stdout ./files-copied.txt multiprocess redirect stderr ./files-error.txt multiprocess csv ./TopLevelMyDriveItems.csv gam user "~Owner" copy drivefile "~id" teamdriveparentid "~SharedDriveId" recursive



Ross
----
Ross Scroggs


On Dec 5, 2025, at 11:00 AM, 'Zachary DiFonzo' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:

Zachary DiFonzo

unread,
Dec 5, 2025, 2:54:26 PM (2 days ago) Dec 5
to google-ap...@googlegroups.com
Ross

Thanks for the quick response, I have something on your calendar for Monday
Thank you so much 



--


Zachary DiFonzo

Google Platform SME | Principal 

Dark Wolf Solutions, LLC

O: (571) 287-7255

C: (610) 331-3534

www.darkwolfsolutions.com

Book some time to Chat 


“This email contains Dark Wolf Proprietary Information”


Ross Scroggs

unread,
Dec 5, 2025, 2:56:02 PM (2 days ago) Dec 5
to google-ap...@googlegroups.com
Monday at 5:30AM (I'm in California) is a little early, 7:30AM is good.

Ross
----
Ross Scroggs


Reply all
Reply to author
Forward
0 new messages