Eric Uldall
Eric Uldall

Reputation: 2391

Is there a way to download the contents of a folder from google cloud storage?

I'm using google cloud storage to automate csv exports from big query. The way I have it set up currently creates a folder for each year > month > day > file.csv

So lets say I wanted to download an entire years worth of reports, can I just download that year folder and all the folders inside of it?

I'm not seeing a way to do this through the cloud storage dashboard.

Upvotes: 1

Views: 214

Answers (1)

Ryan
Ryan

Reputation: 2542

You can't do it via the dashboard but you can via the command line tool

gsutil -m cp -R gs://my_bucket/2014 . 

will download all contents of a folder to the current folder.

Upvotes: 3

Related Questions