[英]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.