s3: list and download files

List files

aws s3 ls s3://yourbucket/backup.2017-

Download

aws s3 ls s3://dca06-deepaffects-audio-apis-data/srs@ringcentral.com/13-04-2022/async/0071c351-c852-48bd-b720-c598d5462a85.json.in_file | colrm 1 31 | xargs -I % aws s3 cp s3://dca06-deepaffects-audio-apis-data/srs@ringcentral.com/13-04-2022/async/0071c351-c852-48bd-b720-c598d5462a85.json.in_file . --dryrun

Also download

aws s3 sync s3://yourbucket/ . --exclude "*" --include "backup.2017-01-01*"

Also, remember to use --dryrun to test your command and avoid downloading all files in the bucket.

Last updated

Was this helpful?