amazon s3 - Retrieve and Parse into Folders based on FileName -


i have tablenames in s3 bucket, need move these files 1 bucket s3 bucket

1)schemaname.2017-08-18-01.46.33.tablename1.dat.gz 2)schemaname.2016-07-15-05.46.33.tablename2.dat.gz

i require batch script copy these tables 1 bucket other based on filename as

1 file has copied d:\tablename1\2017\08\18\ 2 file has copied d:\tablename2\2016\07\15\

wanted specify path in dynamic folder

aws s3 cp "%s3bucket1%" "%s3bucket2%" --recursive --exclude "" --include ".gz"

where s3bucket1 & s3bucket2 have primary folder structure

s3bucket1- s3://mybucket1/ s3bucket2- s3://mybucket2/

thanks, arunkumar.b


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -