Amazon S3 and Amazon Glacier Together: the Best of Both Worlds for Your Backup Strategy

(Update) If you’re interested in learning about the differences between Amazon S3 and Glacier, we recommend this article on Amazon S3 vs Amazon Glacier: A Simple Backup Strategy in the Cloud.


When it comes to backing up your data, you just want the safest, fastest, easiest and cheapest solution available, don’t you? Unfortunately, a compromise must be made among those 4 desiderata, especially with regard to the price, which is likely to be much higher when safety, speed, and ease grows too. Two solutions in the Amazon Web Services set are especially interesting to you to consider as a viable backup solution: Amazon S3 and Amazon Glacier. They are two different players with different skills, and your backup strategy should take advantage of both to balance the pros and cons of each of them. Let’s see what those services are used for and how we can make them an excellent solution for your needs.

Amazon S3: the Simple Storage Service

Amazon Simple Storage Service is the most popular and used cloud file storage service offered by Amazon. It is available through interfaces like REST, SOAP and BitTorrent, and data can be retrieved and stored any time and from everywhere. Availability of data is one of the key differences between S3 and Glacier. Being a basic storage service based on a key-value approach, it is very versatile and used for many different purposes. Its most common usage is probably contents storage and distribution. You can distribute your content directly from Amazon S3 or integrate it with other solutions like Amazon CloudFront. Since you don’t pay for data sent from S3 to EC2 it’s great to store data for computation and other analytics. Taking advantage of his elastic scalability and pay-as-you-go pricing, it is great to host static content for websites as well. And, of course, it’s a great solution for backing up and archiving data.

Amazon Glacier: freeze and forget your data

Amazon Glacier is a dedicated solution for data backup which leverages aggressive pricing and durability of data trading off speed and availability time for your data. In fact, Amazon Glacier is optimized for data that is infrequently accessed and for which retrieval times of several hours are suitable. Amazon hasn’t revealed many insights about how Glacier works under the hood. Despite the data retrieval time, in the order of several hours, is similar to the delays of tape-based systems, the general consensus (mostly based on rumors) is that Glacier is not tape-based, rather it runs on high-capacity low-cost hard disks, possibly low-RPM hard drives used in custom racks with proprietary logic. Details you probably don’t care about that much if you consider the incredible price of 0.01$ per GB per month and declared durability of 99.999999999%, which makes Glacier a great solution for (very-) long term data archiving and backup.

The best of both worlds

So, it’s clear that S3 and Glacier are two very different worlds. Speed and immediate availability on a side, ridiculous price and rock-solid archiving on the other. Chances are you will like all those features for a high-efficiency backup strategy, so why not taking advantage of both the services? Amazon makes the process very easy since S3 has a native feature for long term archiving of objects on Glacier.
First of all, you need to set up a lifecycle rule in the AWS Management Console to tell S3 which objects are to be archived to Glacier and under what conditions. In this rule, you specify which objects in the bucket are subject to the policy, a timing for transitioning objects to Glacier and an object age at which the object will be deleted from S3. Every day, S3 will evaluate the policies and act accordingly. If an object is successfully archived to Glacier, the object’s data will be removed from S3 but its index entry will remain as is, and its storage class will be set to GLACIER.

Now, if you need to see what S3 objects are stored using Glacier, you can get it using S3’s LIST API, just like you are already used to do. What is slightly different is the process to retrieve an object. You can’t just GET it, you must RESTORE it from Glacier, wait for the usual 3-5 hours for the object to be unfrozen, then the object will stay available to you for a retention period you defined during the RESTORE operation itself. Once this period is over, the object will be removed from S3 but will remain in Glacier indefinitely. If you are wondering if you can retrieve objects using Glacier’s API, the answer is: you can’t, since they have been stored there via S3 and the mapping between you user-defined object name and the Glacier system-defined identifier is managed by S3 itself.

Avatar

Written by

Andrea Colangelo

Software Engineer with a solid focus on QA and an extensive experience in ICT. Above all, Andrea has a very strong interest in Free and Open Source Software, and he is a Debian and Ubuntu Developer since years. Non-tech interests include: Rugby, Jazz music and Cooking.


Related Posts

Avatar
Guy Hummel
— December 12, 2019

Google Cloud Platform Certification: Preparation and Prerequisites

Google Cloud Platform (GCP) has evolved from being a niche player to a serious competitor to Amazon Web Services and Microsoft Azure. In 2019, research firm Gartner placed Google in the Leaders quadrant in its Magic Quadrant for Cloud Infrastructure as a Service for the second consecuti...

Read more
  • AWS
  • Azure
  • Google Cloud Platform
Alisha Reyes
Alisha Reyes
— December 10, 2019

New Lab Challenges: Push Your Skills to the Next Level

Build hands-on experience using real accounts on AWS, Azure, Google Cloud Platform, and more Meaningful cloud skills require more than book knowledge. Hands-on experience is required to translate knowledge into real-world results. We see this time and time again in studies about how pe...

Read more
  • AWS
  • Azure
  • Google Cloud
  • hands-on
  • labs
Alisha Reyes
Alisha Reyes
— December 5, 2019

New on Cloud Academy: AWS Solution Architect Lab Challenge, Azure Hands-on Labs, Foundation Certificate in Cyber Security, and Much More

Now that Thanksgiving is over and the craziness of Black Friday has died down, it's now time for the busiest season of the year. Whether you're a last-minute shopper or you already have your shopping done, the holidays bring so much more excitement than any other time of year. Since our...

Read more
  • AWS
  • AWS solution architect
  • AZ-203
  • Azure
  • cyber security
  • FCCS
  • Foundation Certificate in Cyber Security
  • Google Cloud Platform
  • Kubernetes
Avatar
Cloud Academy Team
— December 4, 2019

Understanding Enterprise Cloud Migration

What is enterprise cloud migration? Cloud migration is about moving your data, applications, and even infrastructure from your on-premises computers or infrastructure to a virtual pool of on-demand, shared resources that offer compute, storage, and network services at scale. Why d...

Read more
  • AWS
  • Azure
  • Data Migration
Wendy Dessler
Wendy Dessler
— November 27, 2019

6 Reasons Why You Should Get an AWS Certification This Year

In the past decade, the rise of cloud computing has been undeniable. Businesses of all sizes are moving their infrastructure and applications to the cloud. This is partly because the cloud allows businesses and their employees to access important information from just about anywhere. ...

Read more
  • AWS
  • Certifications
  • certified
Avatar
Andrea Colangelo
— November 26, 2019

AWS Regions and Availability Zones: The Simplest Explanation You Will Ever Find Around

The basics of AWS Regions and Availability Zones We’re going to treat this article as a sort of AWS 101 — it’ll be a quick primer on AWS Regions and Availability Zones that will be useful for understanding the basics of how AWS infrastructure is organized. We’ll define each section,...

Read more
  • AWS
Avatar
Dzenan Dzevlan
— November 20, 2019

Application Load Balancer vs. Classic Load Balancer

What is an Elastic Load Balancer? This post covers basics of what an Elastic Load Balancer is, and two of its examples: Application Load Balancers and Classic Load Balancers. For additional information — including a comparison that explains Network Load Balancers — check out our post o...

Read more
  • ALB
  • Application Load Balancer
  • AWS
  • Elastic Load Balancer
  • ELB
Albert Qian
Albert Qian
— November 13, 2019

Advantages and Disadvantages of Microservices Architecture

What are microservices? Let's start our discussion by setting a foundation of what microservices are. Microservices are a way of breaking large software projects into loosely coupled modules, which communicate with each other through simple Application Programming Interfaces (APIs). ...

Read more
  • AWS
  • Docker
  • Kubernetes
  • Microservices
Nisar Ahmad
Nisar Ahmad
— November 12, 2019

Kubernetes Services: AWS vs. Azure vs. Google Cloud

Kubernetes is a popular open-source container orchestration platform that allows us to deploy and manage multi-container applications at scale. Businesses are rapidly adopting this revolutionary technology to modernize their applications. Cloud service providers — such as Amazon Web Ser...

Read more
  • AWS
  • Azure
  • Google Cloud
  • Kubernetes
Avatar
Stuart Scott
— October 31, 2019

AWS Internet of Things (IoT): The 3 Services You Need to Know

The Internet of Things (IoT) embeds technology into any physical thing to enable never-before-seen levels of connectivity. IoT is revolutionizing industries and creating many new market opportunities. Cloud services play an important role in enabling deployment of IoT solutions that min...

Read more
  • AWS
  • AWS IoT Events
  • AWS IoT SiteWise
  • AWS IoT Things Graph
  • IoT
Avatar
Cloud Academy Team
— October 23, 2019

Which Certifications Should I Get?

As we mentioned in an earlier post, the old AWS slogan, “Cloud is the new normal” is indeed a reality today. Really, cloud has been the new normal for a while now and getting credentials has become an increasingly effective way to quickly showcase your abilities to recruiters and compan...

Read more
  • AWS
  • Azure
  • Certifications
  • Cloud Computing
  • Google Cloud Platform
Valery Calderón Briz
Valery Calderón Briz
— October 22, 2019

How to Go Serverless Like a Pro

So, no servers? Yeah, I checked and there are definitely no servers. Well...the cloud service providers do need servers to host and run the code, but we don’t have to worry about it. Which operating system to use, how and when to run the instances, the scalability, and all the arch...

Read more
  • AWS
  • Lambda
  • Serverless