If we want to download entire bucket or folder inside the bucket with AWS CLI.
To copy entire folder from S3 Bucket
Use cp command to download the folder inside bucket from S3 into local drive and recursive option will download all files and folders, if you have a recursive folder/file structure.
aws s3 cp s3://s3-BUCKETNAME/PATH/TO/FOLDER /home/maddy/s3-folder –recursive
To Copy entire bucket from the S3 bucket, Use the sync command to download an entire bucket from s3 to local drive
aws s3 sync s3://s3-BUCKETNAME /home/maddy/s3-bucket