如何使用gsutil将大于30MB的文件上传到Google云存储?
问题描述:
我似乎找不到有关如何将大于30MB的文件上传到Google云存储的文档.我刚刚使用过:
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
答
如果您使用的是CSV格式,则还可以上传gzip版本.只需创建一个gzip文件并使用以下命令将其上传到GCS:
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
我正在使用这种策略来上传200MB以上的平面文件,其gzip版本仅为40 MB.希望这可以帮助.
I am using this strategy to upload more than 200MB flat file whose gzip version is mere 40 MB. Hope this helps.
可在此处