Can I upload files to google cloud storage from url?

前端 未结 3 1609
猫巷女王i
猫巷女王i 2020-12-16 12:47

Code Exemple:

gsutil cp \"http://www.exemple.com/file.txt\" \"gs://bucket/\"
相关标签:
3条回答
  • 2020-12-16 13:32

    You can stream the output of curl to the gsutil cp command as follows:

    curl http://www.example.com/file.txt | gsutil cp - gs://bucket/file.txt
    
    0 讨论(0)
  • 2020-12-16 13:33

    There is Cloud Storage Transfer Service with an option to upload list of URLs though not very simple and more batch-oriented.

    0 讨论(0)
  • 2020-12-16 13:34

    For wget:

    wget http://www.example.com/file.txt -O - | gsutil cp - gs://bucket/file.txt
    
    0 讨论(0)
提交回复
热议问题