Downloading the latest file in an S3 bucket using AWS CLI?
<p>I have an S3 bucket that contains database backups. I am creating a script to download the latest backup (and eventually restore it somewhere else), but I'm not sure how to go about only grabbing the <strong>most recent</strong> file from a bucket.</p>
<p>Is it possible to copy only the most recent file from an S3 bucket to a local directory using AWS CLI tools?</p>