How to download using Windows¶
Requirements¶
You will be provided an authentication key file via a secure transfer system called
1Password. You will also be informed of your Service Account Email. This
will take the format of <inst>-service-account@sms-export-prod-b6e4d536.iam.gserviceaccount.com
where <inst> is your institute or department.
You will also be give a bucket name which contains your files.
Steps¶
- Download the authentication file and save it to a folder.
- Download the Google Cloud Utilities for Windows.
-
Activate the service account.
gcloud auth activate-service-account [Service Account] --key-file=[Key file location] --project=sms-export-prod-b6e4d536 -
Use the gsutils tool to download files. The following command will download all the files in your bucket to the directory
c:\downloads. The download directory could be a file share or other remote storage such as IFS.gsutil rsync -r gs://[bucketname] c:\downloads
Note
Using the rsync command rather than cp will allow you to a resume a download job, rather
than having to restart from scratch.