简体   繁体   English

如何从s3压缩并下载文件?

[英]How do I zip and download a file from s3?

I'm on a machine that is connected to my S3 bucket. 我在连接到S3存储桶的计算机上。 I'd like to download a file. 我想下载一个文件。

I tried to use sync . 我尝试使用sync

aws s3 sync s3://my_bucket/my_file/file.csv

It told me I didn't have enough arguments. 它告诉我我没有足够的论点。 Is there another way I could do this? 我还有其他方法可以做到这一点吗?

Try aws s3 cp s3://my_bucket/my_file/file.csv . 尝试aws s3 cp s3://my_bucket/my_file/file.csv .

Reference: https://docs.aws.amazon.com/cli/latest/reference/s3/cp.html 参考: https//docs.aws.amazon.com/cli/latest/reference/s3/cp.html

Examples at the bottom of the page. 页面底部的示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用ruby从s3存储桶下载zip文件 - how to download a zip file from s3 bucket using ruby 从zip文件中从Amazon S3下载多个图像? - Download multiple images from Amazon S3 in a zip file? 以 Zip 文件的形式从 S3 存储桶下载多个文件 - Download multiple files from S3 bucket in the form of Zip file 使用 API 网关直接从 S3 下载 zip 文件 - Download zip file from S3 using API Gateway directly 如何使用PHP将文件从签名的URL从Amazon S3下载到客户端计算机? - How do I download a file from a signed URL from Amazon S3 to a client machine using PHP? 我如何使用Chef从AWS S3下载文件并将其使用Chef保存到特定目录? - How do I use chef to download a file from AWS S3 and save this to a particular directory using chef? NodeJS 如何从 aws s3 存储桶将文件下载到磁盘? - NodeJS How do I Download a file to disk from an aws s3 bucket? 如何通过解析 object 密钥作为参数从 S3 存储桶下载文件? - How do I download file from S3 bucket by parsing the object key as a parameter? 如何创建预签名 URL 以使用 Boto3 从 S3 存储桶下载文件? - How do I create a Presigned URL to download a file from an S3 Bucket using Boto3? 如何从 Amazon S3 下载具有 100,000 多个版本的文件的所有版本? - How do I download all the versions of a file with 100,000+ versions from Amazon S3?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM