简体   繁体   中英

How do I zip and download a file from s3?

I'm on a machine that is connected to my S3 bucket. I'd like to download a file.

I tried to use 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 .

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

Examples at the bottom of the page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM