Article 5FN8Y AWS S3 Selectively copy files based on timestamp

AWS S3 Selectively copy files based on timestamp

by
hz36t5
from LinuxQuestions.org on (#5FN8Y)
I have struggled wit this for time time now.
My goal is to do the following:

Copy files that are newer than the indicated date in the CLI script from my aws bucket to my local linux server.

aws s3 ls --recursive s3://my bucket/ | awk '$1 > "2021-03-18 00:00:00" {print $0}' | aws s3 cp --recursive my bucket/{} localfolder

I keep receiving: [Errno 32] Broken pipe

Any ideas?latest?d=yIl2AUoC8zA latest?i=7dDJsMgvuzc:V9B4OQaD5L0:F7zBnMy latest?i=7dDJsMgvuzc:V9B4OQaD5L0:V_sGLiP latest?d=qj6IDK7rITs latest?i=7dDJsMgvuzc:V9B4OQaD5L0:gIN9vFw7dDJsMgvuzc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments