For those wanting to avoid installing local tools like gsutil
, there is a way to download files and folders from Google Cloud Storage entirely in the browser:
- Navigate to: https://console.cloud.google.com/storage/browser/BUCKET_NAME
- Find the folder/file you want to download.
- At the top-right of the page, press the code icon to open the Cloud Shell.
- Create a temporary folder in the Cloud Shell virtual-machine:
mkdir Data
- Copy the Cloud Storage data to the temporary
Data
folder: gsutil -m cp -R gs://BUCKET_NAME/FOLDER_OR_FILE_PATH ./Data
- Copy the data into a zip file:
zip -r Data.zip Data
- Download the zip file by running
dl Data.zip
, or: opening the "..." dropdown in the toolbar, pressing "Download file", typing Data.zip
, and pressing "Download".
As an alternative to steps 6 and 7 (or if you want a tar file instead of a zip):
. . 6b. Press the computer icon (or pencil) in the toolbar, to open the Cloud Shell Environment explorer in a new tab.
. . 7b. Right click the Data
folder in the directory browser to the left, and press "Download". A tar file will be downloaded to your local machine, which you can then extract using 7-Zip or the like.