Unzip the zip file to Amazon S3

I am uploading a ZIP file to Amazon S3. Now I need to unzip this file to S3. Are there any teams that S3 should unpack there. I use JAVA to upload files to S3.

+6
source share
2 answers

Infact, I am doing the same. You upload zip to S3. Write a small java batch program that scans your zip folder on S3, downloads it, unzips it, and then uploads the data again to S3. If you do this on an EC2 instance in the same region as your bucket, then since latency is very low, this should happen very quickly.

+7
source

S3 does not analyze the contents of your files. He does not know how to unpack them. If you need to download each file in zip, you must unzip it yourself and download each separately. This site about java.util.zip should start you.

+4
source

Source: https://habr.com/ru/post/902601/


All Articles