How to download multiple files in Google Cloud Storage

+2 votes
We have many files uploaded on the Google storage bucket which is distributed among the team. Now downloading individual file is taking a  lot of time. Is there any way to download all/multiple files from the bucket .

Is it possible to do this without using the cloud sdk?
May 9, 2018 in GCP by nitinrawat895
• 11,380 points
24,526 views

2 answers to this question.

+1 vote

You can achieve this through the gsutil commands, it's not possible with the web UI. through this command, you can download multiple files in parallel.

$> gsutil cp -r gs://my_bucket/Directory

Hope this helped!!

To know more about Google Cloud, It is recommended to go for Google Cloud Certification training today.

Thank you!

answered May 9, 2018 by kurt_cobain
• 9,350 points
0 votes

I recommend they use gsutil. GCS's API deals with only one object at a time. However, its command-line utility, gsutil, is more than happy to download a bunch of objects in parallel, though. Downloading an entire GCS "folder" with gsutil is pretty simple:

$> gsutil cp -r gs://my-bucket/remoteDirectory localDirectory
answered Aug 1, 2018 by bug_seeker
• 15,520 points
Hello,

I am very much interested in doing the same (i.e. download multiple files). But when I tried it in gsutil, the result was "[Errno 28] No space left on device" when I indeed still had plenty of space in my desktop. Did anyone encountered this problem ? I would be greatly appreciate your help showing me how to fix this "No space left on device" error.