Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
代码示例:
gsutil cp "http://www.exemple.com/file.txt" "gs://bucket/"
您可以将 curl 的输出流式传输到 gsutil cp 命令,如下所示:
curl http://www.example.com/file.txt | gsutil cp - gs://bucket/file.txt
有一个云存储传输服务,可以选择上传 URL 列表,虽然不是很简单,而且更面向批处理。
对于 wget:
wget http://www.example.com/file.txt -O - | gsutil cp - gs://bucket/file.txt