GCP Copy Files - Data Export

MRAB python at mrabarnett.plus.com
Thu Feb 10 14:02:27 EST 2022


On 2022-02-10 17:20, BmoreIT wrote:
> I did a data export from Google to export all company data - Google Data Export
> 
> It shows the root folder and to download, I run this command (it automatically enters this command)
> 
> gsutil -m cp -r \ "gs://takeout-export-myUniqueID" \.
> But I have no idea where it would save it being I am not a GCP customer, only Google Workspace. Workspace won't help because they say it's a GCP product but I am exporting from Workspace.
> 
> Can someone let me know the proper command to run on my local machine with Google's SDK to download this folder? I was able to start the download yesterday but it said there was an invalid character in the file names so it killed the export.
> 
> Appreciate any help!

On this page:

     https://cloud.google.com/storage/docs/gsutil/commands/cp

I think the problem might be that you have an surplus backslash.

Does this work?

     gsutil cp -r gs://takeout-export-myUniqueID .

This should copy recursively from gs://takeout-export-myUniqueID to the 
current folder.


More information about the Python-list mailing list