控制数据生命周期的选项
为了防止应用软件或用户可能在某些时候错误地删除或替换对象,Cloud Storage 提供可帮助您保护数据的功能:
可对存储桶设置保留政策以指定保留期限。在达到指定的期限之前,不能删除或替换存储桶中的对象。
可对个别对象设置对象保全。在移除保全之前,任何人都不能删除或替换该对象。
您可以在存储桶上启用对象版本控制,以保留较旧版本的对象。如果在存储桶上启用了版本控制,则在删除或替换对象的有效版本后,该版本会变为非当前版本。如果您意外删除了某个有效对象版本,则可以将其非当前版本恢复为有效版本。
对象版本控制功能会增加存储费用,但可以通过配置对象生命周期管理来删除较旧的对象版本,在一定程度上缓解这一问题。如需查看一种可能的设置,请参阅用于删除对象的生命周期配置示例。
您可以为存储分区配置对象生命周期管理,从而可以更好地控制对象删除操作。定义生命周期配置时,只有在对象满足条件时,Cloud Storage 才会对该对象执行指定的操作。
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-04-08 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"很难理解"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"信息或示例代码不正确"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"没有我需要的信息/示例"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]