Does version S3 keep version

According to amazon

Version control lets you save, retrieve, and restore each version of each item in an Amazon S3 bucket. After you enable bucket versioning, Amazon S3 saves existing objects anytime you perform PUT, POST, COPY, or DELETE operations.

Am I right in assuming that if I copy the contents from one bucket to region x to another bucket in region y, so that the version history is preserved?

If the version is not stored in the copy request, how can I transfer version control to a new bucket? I would like to use boto for this, but I agree with any language.

thanks

+4
source share
1 answer

Sorry: no

Version history is saved for each file in a bucket with version control enabled. If you modify the file, it will save the old version and create a new version for your current version.

If you copy the file to another container, even within the same region, the target file will be version 1.

I tested this with Cloudberry S3 Explorer Pro

EDIT:

You can directly access each version of the file. So what you can do is copy version by version, replaying the whole process in a new bucket. This will indirectly copy the file, including the version

+5
source

All Articles