On Sep 3, 2025, at 7:16 AM, Matthew Weiner <mlwe...@lakelandschools.org> wrote:
I have a folder with a lot of files, like 16,000 files, that I need to move one level up in a share drive. I had to restore them and my backup program put them in \folder\restored and I need them up in \folder - I figured I could just go into Drive on the web and ctrl+a but that'd only give me fifty at a time.I feel like I'm missing an obvious command, but since share drives are a bit of a special case I'm not sure exactly what to do and since a lot of these files are shared outside the drive I need to preserve the permissions that are set on the files. I don't want to just wing it and guess, then spend the next three months fixing permissions on files if I guess wrong.
--
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/a83ebdc4-d2da-4dcf-9eba-6a5f6b354743n%40googlegroups.com.
Get the top level files/folders in \folders\restored
gam redirect csv ./TopFilesFolders.csv user sdorg...@domain.com print filelist select <\folders\restored ID> fields id,name,mimetype depth 0
Inspect TopFilesFolders.csv
Move the top level files/folders up one level
gam redirect stdout ./MoveTopFilesFolders.txt multiprocess redirect stderr stdout csv TopFilesFolders.csv gam user sdorg...@domain.com update drivefile "~id" parentid <\folders ID>
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/18a9d3ed-07e3-490b-847f-ff2cd3d0b218n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/88f99a72-7d3c-4f7d-acd1-0b93012c523bn%40googlegroups.com.