Skip to content

makarski/s3downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S3downloader

Download data from s3 to a local dir

Usage

  1. Enter your s3 credentials in config file

cp config.json.dist config.json

  1. For available options run ./s3downloader -h

Example 1

// download all data from s3://mybucket - data will be stored in downloads-s3 dir next to binary  
s3downloader -bucket=mybucket

// list s3://mybucket contents  
s3downloader -bucket=mybucket -dry-run

Example 2

// download all files from s3://mybucket/docs/backup to /localdir  
s3downloader -bucket=mybucket -prefix=docs/backup -dir=/localdir

// download all files from s3://mybucket/docs/backup to /localdir, prepend filenames with lastmodified timestamp (for repeated filename)  
s3downloader -bucket=mybucket -prefix=docs/backup -dir=/localdir -p

Example 3

// download only files with "txt" extention from s3://mybucket  
s3downloader -bucket=mybucket -regexp=^*\\.txt$

License

See the LICENSE file for license rights and limitations (MIT).

About

Download data from s3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages