Sha256: 6f3716ca1bc6e669d3ec8f0165d9aed27e4a816dfaf02ecee3828ca33f19ccb3
Contents?: true
Size: 1.74 KB
Versions: 6
Compression:
Stored size: 1.74 KB
Contents
# S3 Download by date range [](http://badge.fury.io/rb/s3_download_by_date) S3 Download files by modifed date (Range) ## Installation $ gem install s3_download_by_date ## Configuration add to your ~/.bash_profile (~/.zprofile if using ZSH) ```bash 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 ````bash 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](https://github.com/mojombo/chronic) library to set the --from and --to Or download by timezone ````bash 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:** ````bash s3download list_timezones ```` ````javascript { "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](http://www.opensource.org/licenses/MIT)
Version data entries
6 entries across 6 versions & 1 rubygems