Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Merge multiple zip files on s3 into fewer zip files

We have a problem wherein some of the files in a s3 directory are in ~500MiB range, but many other files are in KiB and Bytes. I want to merge all the small files into fewer bigger files of the order of ~500MiB.

What is the most efficient way to rewriting data in an s3 folder instead of having to download, merge on local and push back to s3. Is there some utility/aws command i can use to achieve it?

like image 821
Pratik Khadloya Avatar asked Mar 07 '23 02:03

Pratik Khadloya


1 Answers

S3 is a storage service and has no compute capability. For what you are asking, you need compute (to merge). So you cannot do what you want without downloading, merging and uploading.

like image 169
helloV Avatar answered Mar 21 '23 11:03

helloV