How do I upload a file size greater than 30MB to google cloud storage with gsutil?

眉间皱痕 提交于 2019-12-11 07:42:26

问题


I can't seem to find the documentation about how to upload files that are greater than 30MB to google cloud storage. I have just been using:

gsutil cp test.csv gs://example

Any help would be awesome. Thanks


回答1:


If you are using the CSV format you can also upload the gzip version. Just create a gzip file and upload on GCS using below:

gsutil cp <localgzipfile> gs://location/of/gzipfile.csv.gz

I am using this strategy to upload more than 200MB flat file whose gzip version is mere 40 MB. Hope this helps.

More info can be found here



来源:https://stackoverflow.com/questions/26137039/how-do-i-upload-a-file-size-greater-than-30mb-to-google-cloud-storage-with-gsuti

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