gpt4 book ai didi

amazon-web-services - Glacier 备份的到期日期

转载 作者:行者123 更新时间:2023-12-03 00:48:42 27 4
gpt4 key购买 nike

有没有办法在 Amazon Glacier 中设置到期日期?我想复制每周备份文件,但我不想保留超过 1 年的值。

可以将文件设置为一年后“过期”吗?还是我必须手动执行此操作?

最佳答案

虽然在Amazon Glacier内本地不可用,AWS最近启用了Archiving Amazon S3 Data to Amazon Glacier ,这使得使用 Glacier 变得更加容易:

[...] Amazon S3 was designed for rapid retrieval. Glacier, in contrast, trades off retrieval time for cost, providing storage for as little at $0.01 per Gigabyte per month while retrieving data within three to five hours.

How would you like to have the best of both worlds? How about rapid retrieval of fresh data stored in S3, with automatic, policy-driven archiving to lower cost Glacier storage as your data ages, along with easy, API-driven or console-powered retrieval? [emphasis mine]

[...] You can now use Amazon Glacier as a storage option for Amazon S3.

这是通过促进 Amazon S3 Object Lifecycle Management 来实现的,这不仅驱动提到的 Object Archival (Transition Objects to the Glacier Storage Class)但还包括可选的 Object Expiration ,它允许您实现您想要的目标,如 Lifecycle Configuration Rules在您决定使对象过期之前部分中概述的那样:

  • The Expiration action deletes objects
    You might have objects in Amazon S3 or archived to Amazon Glacier. No matter where these objects are, Amazon S3 will delete them. You will no longer be able to access these objects. [emphasis mine]

因此,只需花费很少的代价,将对象短期存储在 S3 中(由于无需管理文件/库存,这实际上大大简化了 Glacier 的使用),您就可以获得可选的自动过期的好处。

关于amazon-web-services - Glacier 备份的到期日期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13938868/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com