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?

demandé il y a un an226 vues
1 réponse
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
répondu il y a un an
profile pictureAWS
EXPERT
kentrad
vérifié il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions