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?

질문됨 일 년 전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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠