Sample Header Ad - 728x90

Only copy files from a particular date from s3 storage

1 vote
3 answers
16018 views
I would like to only copy files from S3 that are from today out of a certain bucket with 100s of files. I tried the following: $ aws s3 ls s3://cve-etherwan/ --recursive --region=us-west-2 | grep 2018-11-06 | awk '{system("aws s3 sync s3://cve-etherwan/$4 . --region=us-west-2") }' but it doesn't quite work, I also get files from other dates. How do I do this correctly?
Asked by stdcerr (2099 rep)
Nov 7, 2018, 04:08 AM
Last activity: May 6, 2021, 01:44 PM