Configure Amazon S3 Lifecycle Policies
This chapter describes how to configure the automatic transfer of your backup data between Amazon S3 storage classes using MBS Management Console.
Amazon S3 Lifecycle Policies
Amazon S3 offers lifecycle policies for your backup data. Using lifecycle policies enables you to reduce the costs of infrequently accessed data storage by moving it to different storage classes. Read more about Amazon lifecycle policies here.
Example Your backups have a well-defined lifecycle. Initially, objects in this backup are frequently accessed within 30 days period. Then, these objects are infrequently accessed for up to 90 days. After that, objects in this backup are no longer needed, so you might choose to archive or to delete them. In this scenario, you can create a lifecycle rule and specify the initial backup transition to a Standard-IA storage class, another transition action to S3 Glacier or S3 Glacier Deep Archive storage class, and expiration action. You can manage your storage costs by configuring your backup data transition between different storage classes.
You can set up lifecycle rules for automatic backup data transition using the AWS Console or using the Management Console.
Before moving your data to long-term storage classes, be aware of data retrieval costs from these storage classes. To learn more about Amazon data retrieval types and pricing, visit Amazon S3 Pricing page.
Having Amazon S3 storage account created and set up in Management Console, you can enable lifecycle policies.
Set Up Lifecycle Policy
- Open the Management Console.
- Open Storage menu, then select Storage Accounts.
- In the storage account you want to modify, click a cogwheel icon to open Settings menu.
- Select Lifecycle Rules Settings.
- In Lifecycle Rules Settings dialog box, specify setiings for your backup data lifecycle policy.
- Standard-Infrequent Access Storage Class. Once you selected this check box, specify the number of days after which your backup will be moved to a Standard-IA storage class . This value cannot be less than 30 days due to the Amazon AWS lifecycle policy.
- One Zone-Infrequent Access Storage Class. Once you selected this check box, specify the number of days after which your backup will be moved to a One Zone-Infrequent Access storage class. The default value is 30 days.
- Glacier Storage Class. Once you selected this option, specify the number of days after which to move your data to long-term storage under a Glacier storage class. Specifying a zero value will make your data be immediately archived to Glacier. This option only available if the transition to Standard-IA storage class is not required. When choosing to use Standard-IA storage class using the previous option in this dialog, the number of days specified for a transition to Glacier should exceed the number of days for Standard-IA transition by 30 days.
For example, if you select your data transition to a Standard-IA storage class after 30 days, the minimum number of days after which you can transition this data to Glacier is 60 days. A two-step transitioning of data has an advantage over direct data transfer to Glacier because you do not have to wait for three to five hours for the initial inventory to complete on each transition. With the S3 Glacier lifecycle policy set to 0 days, the inventory occurs as soon as files become uploaded to the storage. After specifying the required durations for transitioning your data, you can save these settings as default if you need to apply them to other folders in this dialog as well.
- Glacier Deep Archive Storage Class. Once you selected this option, specify the number of days after which your backup will be moved to a Glacier Deep Archive storage class. The default value is 0 days.
6. Once you are finished, click OK.
Note that objects that are moved to S3 Glacier or to S3 Glacier Deep Archive are only accessible through the Amazon S3 account. You are not able to manage these object via the Glacier account and you will not be able to see them in Glacier vaults.
Note: Data retrieval from S3 Glacier may take up to 12 hours and from S3 Glacier Deep Archive up to 48 hours respectively.