Skip to content

How to download using Mac or Linux

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

  1. Download the authentication file and save it to a folder.
  2. Download the Google Cloud Utilities.
  3. Activate the service account.

    gcloud auth activate-service-account [Service Account] --key-file=[Key file location] --project=sms-export-prod-b6e4d536
    
  4. Use the gsutils tool to download files. The following command will download all the files in your bucket to the directory /data/downloads. The download directory could be a file share or other remote storage such as IFS.

    gsutil rsync -r gs://[bucketname] /data/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.