You can easily download files from your S3 bucket to your local filesystem using Amazon’s aws-cli
(AWS Command Line Interface).
Install aws-cli
To install aws-cli:
Download the aws-cli directory:
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscli.zip"
Extract the installer:
unzip awscli.zip
Install aws-cli
as root:
sudo aws/install
Download files from the Amazon S3 bucket
Configure the AWS access key ID and secret access key for aws-cli
:
aws configure
Download the files:
To download a single file:
aws s3 cp s3://BUCKET_NAME/BUCKET_PATH LOCAL_DIRECTORY
To download a directory:
aws s3 cp s3://BUCKET_NAME/BUCKET_PATH LOCAL_DIRECTORY --recursive