Restore a deleted bucket in AWS S3 from AWS Glaicer

跟風遠走 提交于 2019-12-11 12:17:10

问题


I created a bucket just to test the archiving in AWS Glacier using S3. I added a rule using the Lifecycle rules to Permanently Delete 3 days after the object's creation date and I applied this rule to the whole bucket.

Now after 3 days, the test bucket is empty as it should be but I don't know how to access my archived bucket in Glacier using S3. I searched on the AWS documentation and came across this link but how can I restore an object if the bucket is empty, kindly help me to restore the bucket from AWS Glacier.


回答1:


How did you setup your life-cycle rule?
If you set it to glacier after 1 day and permanently delete after 3 days then it is GONE.

Gone from your bucket after 1 day = put Item is in Glacier. remove from bucket. You could restore it from glacier at this time.

Permanent Delete after 3 days = delete from glacier. file does not exist in glacier or bucket

http://docs.aws.amazon.com/AmazonS3/latest/UG/lifecycle-configuration-bucket-no-versioning.html


Updated answer with image

Change your 'Action on Objects' to Archive and then Permanently Delete and set the glacier day to 3 and your permanently delete date to a long time from now (365 days). At 365 days your object will be removed from glacier.



来源:https://stackoverflow.com/questions/29670449/restore-a-deleted-bucket-in-aws-s3-from-aws-glaicer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!