Trying to download export of GSuite. Receive 'OSError: The directory name is invalid.' when it hits folders named "

I am trying to download the data of all of my users before we close out our Google Suite account. I have created the export. I installed Google Cloud SDK Shell and authenticated to it.. I run 'gsutil cp -r gs://takeout-export-xxxxxxxxxxxx C:\GExport' and it downloads all of the folders that come before 'R' but when it hits the first "Resource: -xxx" folder, it fails with 'OSError: The directory name is invalid.'

These folders don't seem to have overly useful data so I even tried deleting them (from the website interface) but they always fail to delete.

What gives? How can I go about downloading all of the user folders without doing so one at a time, manually?

Edit:

I tried selecting each folder (minus the problem folders) in the website GUI and select download so it gave me commands to download those folders. I tried to copy/paste those commands into GCloud SDK Shell but it doesn't seem to work. It fails when it hits the second line (the first folder to download). Not sure of the proper syntax to attempt to download many folders apparently (and Google's suggested commands are not correct).

1 answer

  • answered 2021-09-02 17:27 Henry

    Ended up giving up doing it the "right" way and modified the command to be many lines, grabbing each folder one at a time, copy/pasted the commands into GCloud SDK and letting them downloading one at a time. Notepad++ is so useful

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum