常见归档层速查
| 层级 | 最小存储期 | 取回体验 |
|---|---|---|
| S3 Glacier Instant Retrieval | 90 天 | 毫秒级,适合偶发读取 |
| S3 Glacier Flexible Retrieval | 90 天 | 分钟至数小时(标准约 3-5 小时) |
| S3 Glacier Deep Archive | 180 天 | 小时级(标准自约 12 小时起) |
| OSS 归档存储 | 60 天 | 需先解冻后读取 |
| OSS 冷归档 / 深度冷归档 | 180 天 | 需先解冻,时间更长 |
S3 归档与取回
S3 归档与取回
aws s3 cp /backup/db.dump s3://my-bucket/archive/db.dump \
--storage-class DEEP_ARCHIVE
# 取回:先 restore 出临时副本
aws s3api restore-object --bucket my-bucket --key archive/db.dump \
--restore-request Days=7最小存储期未满就删除,多数平台仍按剩余天数计费;归档对象在 restore 完成前无法直接下载。