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?

asked 2 years ago257 views
1 Answer
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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions