add only different file to s3 archive

0

I have an s3 bucket. I store there zip archive. I download this zip archive, unzip it, change some files then I zip it and upload back to s3. I'm just curious is it possible to upload not full zip archive but only files that was changed? for example I download zip from aws, change some file and I upload only this files, not full archive. Or is there any other way to optimize this scenario?

已提问 1 年前206 查看次数
1 回答
0

Hello, you can use CLI to make incremental updates to your zip archive. You can use the aws s3 sync command to download the zip archive, make the changes, and then upload only the modified files back to S3. Please refer to this man page https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html

Another way-through, using a versioning feature for your bucket. This allows you to store multiple versions of an object and easily roll back to a previous version if necessary. Check this for more information https://docs.aws.amazon.com/AmazonS3/latest/userguide/Versioning.html

It's important to choose the one that best fits your specific use case and requirements.

profile picture
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容