Google cloud storage 如何将文件从https链接保存到Google云存储
我想直接在谷歌云存储上保存一个大文件(大约50GB)。我尝试了Google cloud storage 如何将文件从https链接保存到Google云存储,google-cloud-storage,Google Cloud Storage,我想直接在谷歌云存储上保存一个大文件(大约50GB)。我尝试了gsutil-cphttps://archive.org/download/archiveteam-twitter-stream-2015-08/archiveteam-twitter-stream-2015-08.tar gs://my/folder,但这不起作用(InvalidUrlError:unrecogned scheme“https”) 有没有办法做到这一点,而不必先将文件下载到本地存储 谢谢 您可以使用curl获取URL
gsutil-cphttps://archive.org/download/archiveteam-twitter-stream-2015-08/archiveteam-twitter-stream-2015-08.tar gs://my/folder
,但这不起作用(InvalidUrlError:unrecogned scheme“https”
)
有没有办法做到这一点,而不必先将文件下载到本地存储
谢谢 您可以使用curl获取URL并将其传输到gsutil。例如:
curl -L https://archive.org/download/archiveteam-twitter-stream-2015-08/archiveteam-twitter-stream-2015-08.tar | gsutil cp - gs://your/folder/archiveteam-twitter-stream-2015-08.tar
还是通过我的本地网站下载的,不是吗?是的。除非您想在GCE服务器上运行该命令,否则无法让它通过云进行复制。