Saltar al contenido principal

How to download all files in a S3 bucket folder

· Lectura de un minuto
Daniel G
Developer

Let's say we have a S3 bucket demo_bucket, and we have folder path under that bucket: public/emails/templates. I have 30 files under that path and I want to download all files. In the AWS console, we can only download one file each time.

We can use the AWS CLI to download all the files:

aws s3 cp s3://demo_bucket/public/emails/templates/ .  --recursive