Cauder
Cauder

Reputation: 2567

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?

Upvotes: 0

Views: 1092

Answers (1)

mprivat
mprivat

Reputation: 21902

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.

Upvotes: 1

Related Questions