---
title: "Targeted Backups With Amazon S3 Glacier Storage Classes"
description: "Is the cost of archive storage putting a dent in your budget? Perhaps it’s time to incorporate or completely migrate your archive data to Amazon S3 Glacier."
canonical: "https://adamtheautomator.com/amazon-s3-glacier/"
---

# Targeted Backups With Amazon S3 Glacier Storage Classes

> Is the cost of archive storage putting a dent in your budget? Perhaps it’s time to incorporate or completely migrate your archive data to Amazon S3 Glacier.

Source: https://adamtheautomator.com/amazon-s3-glacier/

---

ATA Learning

Tap to hide

[

ATA Learning

](/)

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Search for:  

*   [](https://twitter.com/adbertram)
*   [](https://github.com/Adam-the-Automator)
*   [](https://www.linkedin.com/company/adam-the-automator-llc)
*   [](/feed/)

![Targeted Backups With Amazon S3 Glacier Storage Classes](https://adamtheautomator.com/wp-content/uploads/2022/04/Targeted-Backups-With-S3-Glacier-Storage-Classes.jpg)

# Targeted Backups With Amazon S3 Glacier Storage Classes

[![](https://secure.gravatar.com/avatar/a3e6f24b6b657f0acd2615f1802513a18663dea2e04d24e1df9c1530290e9b48?s=192&d=mm&r=g)Uzma Younas](https://adamtheautomator.com/author/uzma-younas/)28 April 20226 min. read

Categories: [IT Ops](/category/it-ops/)

Tags:[AWS S3](/tag/aws-s3/)

Table of Contents

*   [Prerequisites](#prerequisites)
*   [Creating an Amazon S3 Bucket](#creating-an-amazon-s3-bucket)
*   [Configuring the Amazon S3 Bucket Object Lock](#configuring-the-amazon-s3-bucket-object-lock)
*   [Uploading Data to Amazon S3 Glacier](#uploading-data-to-amazon-s3-glacier)
*   [Restoring Data from Amazon S3 Glacier](#restoring-data-from-amazon-s3-glacier)
*   [Deleting Objects from Amazon S3 Glacier](#deleting-objects-from-amazon-s3-glacier)
*   [Conclusion](#conclusion)

The ever-growing demand for content storage and instant data retrieval has increased the complexities of hardware management and capacity planning. Highly regulated industries, such as Financial Services, Healthcare, and Public Sectors, require a regulatory backup of core intellectual property.

Not a reader? Watch this related video tutorial!

**_Not seeing the video? Make sure your ad blocker is disabled._**

As an alternative to storing years’ worth of data archives on on-premises storage systems, the Amazon S3 Glacier storage classes offer low-cost storage options. Read on and learn how to get started with Amazon S3 Glacier classes for data backup and archive.

## Prerequisites

This tutorial will consist of hands-on demonstrations. To follow along, you’ll need an AWS account. You can [register a free-tier account](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all) first if you don’t have one.

## Creating an Amazon S3 Bucket

Before you can begin using the Amazon S3 Glacier classes for data archiving, you’ll first need to create the [b](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingBucket.html#:~:text=a%20bucket%20is%20a%20container%20for%20objects%20stored%20in%20amazon%20s3)[ucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingBucket.html#:~:text=a%20bucket%20is%20a%20container%20for%20objects%20stored%20in%20amazon%20s3) to store your objects in Amazon S3. Follow the below steps to create and configure a new Amazon S3 bucket that you’ll later use with the Amazon S3 Glacier classes.

1\. Open the [AWS Console](https://console.aws.amazon.com) in your preferred browser and log in with your account.

2\. Type _S3_ into the search bar at the top of the page. Under the search results, click **S3**.

> _The S3 Glacier result below refers to the Glacier service before integration with Amazon S3. Do not click this option because doing so will instruct you to access the S3 service console instead._

![Finding the Amazon S3 Glacier service](https://adamtheautomator.com/wp-content/uploads/2022/04/image-518.png)

Finding the Amazon S3 Glacier service

3\. Next, click the **Create bucket** button on the Amazon S3 console page.

![Clicking the Create Bucket button in Amazon S3](https://adamtheautomator.com/wp-content/uploads/2022/04/image-519.png)

Clicking the Create Bucket button in Amazon S3

4\. Under the **General configuration** section, type in the **Bucket name** for your new bucket, such as **s3-storage-class11**.

> _The bucket name must be unique across the entire AWS environment. S3 will not allow you to continue if you entered an already existing name. Also, refer to the [bucket naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) to ensure that your bucket name will be valid._

Next, select the [AWS Region](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html#:~:text=across%20AWS%20Regions.-,region%20availability,-The%20following%20table) where you want to create the bucket. This example chooses the US East (Ohio) east-us-2 region.

![Setting the bucket name and region](https://adamtheautomator.com/wp-content/uploads/2022/04/image-520.png)

Setting the bucket name and region

5\. Leave the **Block all public access** checked to ensure your bucket is not publicly accessible.

> _If needed, you may_ [change the public access settings](https://aws.amazon.com/premiumsupport/knowledge-center/read-access-objects-s3-bucket/) _even after the bucket creation._

![Leaving the bucket’s public access value as the default](https://adamtheautomator.com/wp-content/uploads/2022/04/image-521.png)

Leaving the bucket’s public access value as the default

6\. Next, enable **Bucket Versioning** to allow S3 to preserve, retrieve, and restore every version of all the objects in your bucket.

![Enabling Bucket Versioning](https://adamtheautomator.com/wp-content/uploads/2022/04/image-522.png)

Enabling Bucket Versioning

7\. Now, click on **Add tag** to create one or more tags for your bucket. Tags are optional but helpful when tracking costs or for creating reports. This example creates two tags; **dept=abc**, **archive=true**. Add any tags you may need.

![Adding tags](https://adamtheautomator.com/wp-content/uploads/2022/04/image-523.png)

Adding tags

8\. For the **Default encryption** selection, enable the **Server-side encryption** and choose **Amazon S3-managed keys** as the **Encryption key type**.

![Configuring default encryption settings](https://adamtheautomator.com/wp-content/uploads/2022/04/image-524.png)

Configuring default encryption settings

9\. Expand the **Advanced settings** section and click **Enable** under the **Object Lock** option. Enabling Object Lock prevents accidental deletion or overwriting objects in the S3 bucket.

Check the “_I acknowledge…”_ box to acknowledge the possible ramifications of enabling the object lock option.

Lastly, click the Create bucket button to begin bucket creation.

![Configuring the bucket’s object lock setting](https://adamtheautomator.com/wp-content/uploads/2022/04/image-525.png)

Configuring the bucket’s object lock setting

## Configuring the Amazon S3 Bucket Object Lock

After the bucket creation, you’ll see a green banner confirming the successful bucket creation. At the same time, a blue information banner indicates that although you have enabled the Object Lock during the bucket creation, the automatic protection for new objects is not enabled yet.

To enable the default retention, proceed as follows.

1\. Click the **bucket details** link to open the bucket information page.

![Click on the bucket details link](https://adamtheautomator.com/wp-content/uploads/2022/04/image-526.png)

Click on the bucket details link

2\. Click on the **Properties** tab.

![Clicking the Properties tab](https://adamtheautomator.com/wp-content/uploads/2022/04/image-527.png)

Clicking the Properties tab

3\. Scroll down until you see the **Edit Object Lock** section.

Next, click Enable under the Default Retention.

Select the Governance option as the Default retention mode. This option automatically protects objects in the bucket during the retention period but allows users with [IAM](https://aws.amazon.com/iam/) permissions to delete or overwrite objects.

Enter the Default retention period that you require. This value determines how long the object protection will be in effect. In this example, the default retention period will be one day.

Finally, click Save changes to save the default retention configuration.

![Enabling the Object Lock default retention](https://adamtheautomator.com/wp-content/uploads/2022/04/image-528.png)

Enabling the Object Lock default retention

## Uploading Data to Amazon S3 Glacier

Suppose you have files that you no longer access frequently, such as old software releases and compliance documents. Uploading those data to Amazon S3 Glacier storage would be ideal for archiving purposes.

And depending on your retrieval requirements, you can choose one of three Amazon S3 Glacier classes.

*   **Glacier Instant Retrieval** – The applicable Amazon S3 Glacier if the expected data access frequency is at least once per quarter. As the name implies, data retrieval in this class takes milliseconds, which is quite fast.
*   **Glacier Flexible Retrieval** – Intended for data retrieval that may happen at least once a year. The data retrieval time in this class ranges from a few minutes to hours.
*   **Glacier Deep Archive** – If you expect that there will be no data retrieval for a year, this Amazon S3 Glacier class will be the most appropriate. But, when you need to retrieve the data, this class has the longest retrieval time (hours) compared with the two previous classes.

Now that you have the gist of the Amazon S3 Glacier Storage classes follow these steps to put your bucket in action.

1\. Click the **Objects** tab on the bucket’s page and click **Upload**.

![Click the Objects Upload button](https://adamtheautomator.com/wp-content/uploads/2022/04/image-529.png)

Click the Objects Upload button

2\. There are two ways to upload files or folders; the **Drag and drop** method or the file dialog (browse and select) method. Choose the upload method you prefer, or try both.

![Adding files and folders to upload](https://adamtheautomator.com/wp-content/uploads/2022/04/image-530.png)

Adding files and folders to upload

Once you’ve added the data to upload, you see the list under the Files and folders section. As you can see below, this example will be uploading one file. Add more files as you want at this point.

![Confirming the list of files and folders to upload](https://adamtheautomator.com/wp-content/uploads/2022/04/image-531.png)

Confirming the list of files and folders to upload

3\. Scroll down and expand the **Properties** section. Under the **Storage class** list of options, select one of three Amazon Glacier S3 classes. For this example, choose the **Glacier Flexible Retrieval** class. This class replicates data across three or more geographically-dispersed [Availability Zones](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).

![Choosing the Amazon S3 Glacier storage class](https://adamtheautomator.com/wp-content/uploads/2022/04/image-532.png)

Choosing the Amazon S3 Glacier storage class

4\. Now, scroll down to the bottom of the page and click **Upload. Y**ou’ll see a progress indicator at the top of the page during the upload, as shown below.

![Upload status](https://adamtheautomator.com/wp-content/uploads/2022/04/image-533.png)

Upload status

5\. After the upload, you’ll see the confirmation message, as the image below shows. Click **Close** to close the upload status.

![Closing the uploading status page](https://adamtheautomator.com/wp-content/uploads/2022/04/image-534.png)

Closing the uploading status page

You should now see the data you uploaded on the list of Objects showing its properties, including the Storage class.

![Viewing the uploaded objects](https://adamtheautomator.com/wp-content/uploads/2022/04/image-535.png)

Viewing the uploaded objects

## Restoring Data from Amazon S3 Glacier

Part archiving is that the data should be accessible. But, unlike non-Glacier objects, you cannot directly download or access objects from Amazon S3 Glacier. Instead, you must first initiate a data restore of the object. To do so, follow the below steps.

1\. Select one or more objects to restore from the **Objects** list. In this example, select the file you previously uploaded called _imports-85.data_. After selecting the file, click **Actions** → **Initiate restore**.

![Initiating an object restoration](https://adamtheautomator.com/wp-content/uploads/2022/04/image-536.png)

Initiating an object restoration

2\. On the **Initiate restore** page, enter the number of days for how long the restored object will be available. The below example will keep the restored data for seven days.

Next, choose the Retrieval tier. The tier you choose affects the retrieval time. In this example, choose the Expedited retrieval tier, which should complete the restoration within 5 minutes if the data is less than 250 MB.

> _Faster retrieval times mean higher fees. Refer to the [Amazon S3 Pricing](https://aws.amazon.com/s3/pricing/) page to understand the data retrieval costs._

![Choosing the retrieval tier and copy availability](https://adamtheautomator.com/wp-content/uploads/2022/04/image-537.png)

Choosing the retrieval tier and copy availability

3\. Scroll to the bottom of the page and click **Initiate restore**.

![Clicking the Initiate restore button](https://adamtheautomator.com/wp-content/uploads/2022/04/image-538.png)

Clicking the Initiate restore button

You should see a confirmation message at the top of the page, as shown below. Review the summary and click **Close**.

![Viewing the initiate restore status](https://adamtheautomator.com/wp-content/uploads/2022/04/image-539.png)

Viewing the initiate restore status

At this point, you can only wait for the restoration process to finish.

5\. After the restoration, you should see that the object is available to download. Click the Download button to download the file.

![Downloading the restored object from Amazon S3 Glacier](https://adamtheautomator.com/wp-content/uploads/2022/04/image-540.png)

Downloading the restored object from Amazon S3 Glacier

Related:[How To Upload Local Files to AWS S3 with the AWS CLI](https://adamtheautomator.com/upload-file-to-s3/)

## Deleting Objects from Amazon S3 Glacier

When the archived data has reached the point where it’s no longer relevant, deleting them from your Amazon S3 Glacier storage is the next logical step. Doing so also helps reduce the cost of keeping your S3 bucket, so you should also have a strategy for housekeeping.

1\. To delete objects from the Amazon S3 Glacier, select the object(s) to delete from your bucket and click the **Delete** button. The below example selects the **imports-85.data** object to delete.

![Selecting the object to delete](https://adamtheautomator.com/wp-content/uploads/2022/04/image-541.png)

Selecting the object to delete

2\. On the **Delete Objects** page, confirm your intention to delete the object by typing **delete** into the box and clicking **Delete objects**.

![Confirming the object deletion](https://adamtheautomator.com/wp-content/uploads/2022/04/image-542.png)

Confirming the object deletion

3\. Wait for the delete to complete, review the summary, and click **Close**. You have now deleted the object from Amazon S3 Glacier.

![Viewing the object deletion summary](https://adamtheautomator.com/wp-content/uploads/2022/04/image-543.png)

Viewing the object deletion summary

## Conclusion

In this tutorial, you have learned to upload, retrieve, and delete objects from the Amazon S3 Glacier storage classes. AWS offers digital data preservation at low costs with comprehensive security and retrieval capabilities.

You can even use [S3 API](https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-dg.pdf) to automate enterprise data, media archives, and data lake archives. The API allows you to access all the features and functionality that the Amazon S3 service provides.

Related:[How to Leverage AWS PowerShell Commands for Automation](https://adamtheautomator.com/aws-powershell/)

Share this article

[Share on X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fadamtheautomator.com%2Famazon-s3-glacier%2F&text=Targeted%20Backups%20With%20Amazon%20S3%20Glacier%20Storage%20Classes)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fadamtheautomator.com%2Famazon-s3-glacier%2F)[Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fadamtheautomator.com%2Famazon-s3-glacier%2F)

## Related Posts

![](https://adamtheautomator.com/wp-content/uploads/2023/09/onyx-macos-1200-×-675-px.jpg)

### [How to Install the CyberDuck S3 Browser for Mac](/s3-browser-for-mac/)

Learn how to use CyberDuck as your S3 Browser for Mac and ease your S3 management today in this ATA Learning tutorial!

![](https://adamtheautomator.com/wp-content/uploads/2023/06/S3-bucket-policy.jpg)

### [How to Manage Permissions With S3 Bucket Policy](/s3-bucket-policy/)

Easily control access to your S3 objects with Bucket Policies. Learn how to set up, configure, and manage permissions to keep your data secure.

![](https://adamtheautomator.com/wp-content/uploads/2022/09/Getting-Started-with-Amazon-S3-Inventory.jpg)

### [Getting Started with Amazon S3 Inventory](/s3-inventory/)

Learn how to find and retrieve an overview of all your Amazon S3 data with the Amazon S3 Inventory tool in this ATA Learning tutorial!

## Categories

*   [IT Ops](/category/it-ops/)
*   [Cloud](/category/cloud/)
*   [DevOps](/category/devops/)
*   [Home Ops](/category/home-ops/)
*   [Information Security](/category/infosec/)
*   [Software Development](/category/software-development/)

## Site

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Copyright 2026© ATA Learning | [Privacy Policy](/privacy/)
