Restore versions of replicated S3 objects with version ID and timestamp intact

0

I have replication setup between 2 S3 buckets and in-sync replicated copies of multiple objects between the 2 (Versioning is enabled). I have deleted an object from source site (Site 1) but the replicated version exists in my target bucket (Site 2).

How do I get that replicated object back to the Site 1 with the version ID and last modified date as they are shown in Site 2 bucket? I have that copy so there m

Everything I try fails. Have tried:

  • Replicate from 2 to 1 with tags to limit which files are replicated - fails presumably to prevent chained replications. Sort of expected that.
  • Move or copy: creates a new last modified date and version ID. Did not expect that, especially on move operation.

If the object owner is to believe it is the original version, when you have a copy in site 2, there must be a way to get that object version back to site 1?

已提問 1 年前檢視次數 448 次
1 個回答
0

To my understanding it is not possible since PUT-Operation will always create a new version. (https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html)

  • Why are you not just deleting the deletemarker on the object in bucket1 to get the specific object-version back? (https://aws.amazon.com/de/premiumsupport/knowledge-center/s3-undelete-configuration/)

  • Is there a reason you need exactly the version you deleted or why not just use the new version generated when you copy the file back from bucket2 to bucket1? That will create a new version on bucket2 as well as on bucket1.

profile picture
HeikoMR
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南