Ranjodh Singh
Ranjodh Singh

Reputation: 21

Download public data to google storage

I want to download public data directly from the link to my google storage bucket using gsutil. I can't any command to do so.

Upvotes: 0

Views: 607

Answers (1)

Travis Hobrla
Travis Hobrla

Reputation: 5511

You can use curl to get data from a link and pipe it to gsutil (which will stream it to Google Cloud Storage) like so:

curl 'https://www.website.com/link-to-your-data' | gsutil cp - gs://your-bucket-name/your-object-name

Upvotes: 1

Related Questions