Wednesday, 11 April 2018

Archiving your S3 content

In a previous post I showed how to setup a Glacier Vault and put data in it by using a CLI. Another way to make use of the cheaper storage service is to move your data from a S3bucket into a Glacier vault. You can do this by making use of the Object Lifecycle Management which make it possible to move data from your S3 bucket to a Glacier storage class by simply applying a rule like if data in a bucket is more than 3 months old move it.
Please note that although the object is stored in Glacier you cannot access the object from the Glacier console or API. You can only access them via the S3 service to restore a copy of it for a certain time.
Go to the S3 services and select the bucket you want to archive:
Screen Shot 2013-05-15 at 21.56.11
Make sure you select the root of the bucket. If so, then the option ‘Lifecycle’ is available as property. Click ‘Add rule’ to add an archiving rule:
Screen Shot 2013-05-15 at 21.56.40
In the ‘Rule’ window you can define which objects in the bucket should be moved to the Glacier and when:
Screen Shot 2013-05-15 at 21.57.25
After saving the rule just wait and after some time you can see the Storage Class of your objects in the bucket that matches the defined rule will be moved from the ‘Standard’ Storage class to the ‘Glacier’ storage class:
Screen Shot 2013-05-26 at 16.42.37
Now these objects are stored in the Glacier storage (and thus no longer accessible in real time).

No comments:

Post a Comment