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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ