如何使用gsutil将大于30MB的文件上传到Google云存储? [英] How do I upload a file size greater than 30MB to google cloud storage with gsutil?

查看:41
本文介绍了如何使用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.

可在此处

这篇关于如何使用gsutil将大于30MB的文件上传到Google云存储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆