I am trying to download a full bucket from my Google Cloud Storage. I am using gsutil and the CLOUD SHELL Terminal.

My current piece of code receives and error: "CommandException: Destination URL must name a directory, bucket, or bucketsubdirectory for the multiple source form of the cp command."

The code is:

gsutil -m cp -r gs://googleBucket D:\GOOGLE BACKUP

where googleBucket is the bucket and D:\GOOGLE BACKUP is the directory to my desired download location. Am I missing something here?

Any help is appreciated.P.S. I am in no way tech savvy, and most of this is new to me.

1

Best Answer


download this way first

gsutil -m cp -r gs://googleBucket .

The . downloads it to current directory. Do an ls and you will see the download

Then go to the 3 dots and download locally. The 3 dots is to the right of open editor.