Lifecycle management applies to the following scenarios:
You can define lifecycle rules for identifying objects and manage lifecycles of the objects based on the rules. After unwanted files are deleted, less OBS storage space is required, saving your costs.
Objects that are no longer frequently accessed are transitioned to Warm or Cold, saving your costs. This transition means that the object storage class is altered without copying the object. You can also manually change the storage class of an object on the object page. For details, see Uploading a File or Folder. See Object Storage Classes Overview for details about differences between changing storage classes in the object list and transitioning storage classes through the lifecycle rule.
Lifecycle rules have two key elements:
You can also specify the prefix of object names so that objects whose names have this prefix are restricted by the rules. You can configure a lifecycle rule for a bucket so that all objects in the bucket can be restricted by the lifecycle rule.
You can specify the number of days after which objects that have been last updated and meet specified conditions are automatically transitioned to Warm, Cold, or expire and are then automatically deleted.
The previous number of days for objects to be transitioned to Warm is at least 30. If objects are configured able to be transitioned to Warm and Cold both, the number of days for transition to Cold must be at least 30 greater than that for transition to Warm. For example, if the number of days for transition to Warm is 33, that for transition to Cold must be 63 at least. If only transition to Cold is enabled and transition to Warm is disabled, there is no limit on the number of days for transition. The expiration time must be later than the last transition.