问题描述
我想知道是否有一种简单的方法可以将 Glacier 对象永久恢复到 S3.似乎您可以在恢复到 S3 时提供的一定时间内恢复 Glacier 对象.例如,我们现在将数千个文件还原到 S3,这些文件将在 90 天内返回 Glacier,但我们不希望它们返回 Glacier.
I'm wondering whether there is an easy way to permanently restore Glacier objects to S3. It seems that you can restore Glacier objects for the certain amount of time you provide when restoring to S3. So for example, we have now thousands of files restored to S3 that will get back to Glacier in 90 days but we do not want them back in Glacier.
推荐答案
为了澄清一个技术问题,您的文件不会返回"90 天后的 Glacier -- 因为它们仍在 Glacier 中,但是由于您已经完成了恢复,S3 将在 90 天(或您指定的任何日期值)后删除 S3 减少冗余存储 (RRS) 中的临时副本执行了还原操作.还原文件不会删除 Glacier 副本.
To clarify a technicality on one point, your files will not "go back to" Glacier in 90 days -- because they are still in Glacier, but since you have done a restore, there are temporary copies living in S3 reduced redundancy storage (RRS) that S3 will delete in 90 days (or whatever day value you specified when you did the restore operation. Restoring files doesn't remove the Glacier copy.
你的问题的答案是否定的,是的.
The answer to your question is no, and yes.
从技术上讲,您不能将对象从 Glacier 存储类更改回标准或 RRS 类...
You cannot technically change an object from the Glacier storage class back to the standard or RRS class...
对象到 GLACIER 存储类的转换是单向的.您不能使用生命周期配置规则将对象的存储类从 GLACIER 转换为 Standard 或 RRS.
...不过...
如果要将已归档对象的存储类别更改为 Standard 或 RRS,则必须先使用还原操作制作临时副本.然后使用复制操作将对象覆盖为 Standard 或 RRS 对象.
http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html
您可以将该对象复制到从技术上讲是一个新对象,但该对象与新对象具有相同的密钥(路径)...因此出于实际目的,是的,您可以.
You can copy that object to what is, technically, a new object, but one that has the same key (path) as the new object... so for practical purposes, yes, you can.
此处讨论了 PUT/COPY 操作:http://docs.aws.amazon.com/AmazonS3/latest/dev/ChgStoClsOfObj.html
The PUT/COPY action is discussed here:http://docs.aws.amazon.com/AmazonS3/latest/dev/ChgStoClsOfObj.html
这篇关于将 Glacier 永久恢复到 S3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!