Will the objects be archived in glacier in this scenario?

0

Hello, I have a policy on s3 to archive on glacier all objects every day. I want to restore some files for 30 days. Will the objects be available for 30days or will be "stored in glacier" the next day?

I have restored the objects and 3 days later I see them that they are again in glacier. This could mean that I haven't send the correct requests to export them, or the policy has archived them on the next day.

Which one is true?

질문됨 일 년 전226회 조회
1개 답변
1

hi,

A restore operation makes a copy of the object available on it's bucket, where you can run the GET operation etc. After you receive a temporary copy of the restored object, the object's storage class remains S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive. So the lifecycle rules for transition, you specified above may not apply.

I propose to look at the expiry date on your restore call and make sure the details are correct - https://docs.aws.amazon.com/AmazonS3/latest/userguide/restoring-objects.html

To calculate the expiry date, Amazon S3 adds the number of days that you specify to the time that you request to restore the object, and then rounds to the next day at midnight UTC. This calculation applies to the initial restoration of the object and to any changes to availability that you request. For example, if an object was restored on October 15, 2012, at 10:30 AM UTC, and the number of days that you specified is 3, the object is available until October 19, 2012, at 00:00 UTC. If, on October 16, 2012, at 11:00 AM UTC, you change the number of days that you want the object to be accessible to 1, Amazon S3 makes the restored object available until October 18, 2012, at 00:00 UTC.

Hope this helps, Thanks Arun

AWS
Arun
답변함 일 년 전
profile pictureAWS
전문가
kentrad
검토됨 일 년 전

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

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

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

관련 콘텐츠