Download public data to google storage

心已入冬 提交于 2020-01-03 06:45:15

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/47778015/download-public-data-to-google-storage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!