No commit activity in last 3 years
No release in over 3 years
Download files by modified date range
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 4.1.4, ~> 4.1
>= 1.40.0, ~> 1.40
>= 0.10.2, ~> 0.10
>= 0.21.0, ~> 0.21
>= 0.19.1, ~> 0.19
 Project Readme

S3 Download by date range Gem Version

S3 Download files by modifed date (Range)

Installation

$ gem install s3_download_by_date

Configuration

add to your /.bash_profile (/.zprofile if using ZSH)

export REGION='eu-west-1' (default to us-east-1)
export AWS_ACCESS_KEY="YOUR AWS KEY ID"
export AWS_SECRET_KEY="YOUR AWS SECRET KEY"

Usage

s3download  --bucket=s3-bucket-name \
            --prefix=folder or file prefix on S3 \
            --from='yesterday at noon' \ 
            --to='today at noon'  \
            --save-to=~/Downloads

s3download uses Chronic library to set the --from and --to

Or download by timezone

s3download --timezone='Eastern Time (US & Canada)' \
           --bucket=s3-bucket-name \
           --prefix=folder_or_file_prefix \
           --from='yesterday at noon' \ 
           --to='today at noon' \
           --save-to=~/Downloads 

Getting a list of timezones strings:

s3download list_timezones 
 {
 "International Date Line West": "Pacific/Midway",
 "Midway Island": "Pacific/Midway",
 "American Samoa": "Pacific/Pago_Pago",
 "Hawaii": "Pacific/Honolulu",
 "Alaska": "America/Juneau",
 "Pacific Time (US & Canada)": "America/Los_Angeles"
 .
 .
 .
 }

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

LICENSE

s3_download_by_date is released under MIT License