{"id":307691,"date":"2021-07-23T14:00:00","date_gmt":"2021-07-23T11:00:00","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/why-you-should-backup-your-aws-ebs-volumes-and-how-to-do-it-cloudsavvy-it\/"},"modified":"2021-07-23T14:00:00","modified_gmt":"2021-07-23T11:00:00","slug":"why-you-should-backup-your-aws-ebs-volumes-and-how-to-do-it-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/why-you-should-backup-your-aws-ebs-volumes-and-how-to-do-it-cloudsavvy-it\/","title":{"rendered":"#Why You Should Backup Your AWS EBS Volumes (And How to Do It) \u2013 CloudSavvy IT"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2fccc68965a\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2fccc68965a\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/why-you-should-backup-your-aws-ebs-volumes-and-how-to-do-it-cloudsavvy-it\/#%E2%80%9CFault-Tolerant%E2%80%9D_Does_Not_Mean_Safe\" >\u201cFault-Tolerant\u201d Does Not Mean Safe<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/why-you-should-backup-your-aws-ebs-volumes-and-how-to-do-it-cloudsavvy-it\/#How_Do_EBS_Snapshots_Work\" >How Do EBS Snapshots Work?<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#Why You Should Backup Your AWS EBS Volumes (And How to Do It) \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\n<img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage alignnone size-full wp-image-5269\" srcset=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/06\/e601b806.png?width=398&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 400w, https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/06\/e601b806.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 1200w\" sizes=\"auto, 400w, 1200w\" src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/06\/e601b806.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"AWS Logo\" width=\"700\" height=\"300\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>EBS is a block storage service offered by AWS. If you\u2019re running an EC2 instance, you\u2019re definitely using it, as it serves as the storage disk for your server. However, it\u2019s not safe from failures, and you should still do regular backups.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"%E2%80%9CFault-Tolerant%E2%80%9D_Does_Not_Mean_Safe\"><\/span>\u201cFault-Tolerant\u201d Does Not Mean Safe<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Of course, EBS is fairly fault tolerant on the backend. AWS aren\u2019t a bunch of savages running a JBOD array; they\u2019ve planned for single drive failures, so a single bad drive isn\u2019t going to take down your server.<\/p>\n<p>However, EBS failures can and do h<a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>en, as EBS volumes have an annual failure rate (AFR) of between 0.1%-0.2%. This isn\u2019t a lot, and it\u2019s very low compared to a single hard drive\u2019s ~4%, but it\u2019s not nothing. You\u2019re not likely to have your EBS volume just fail on you, but if you\u2019re running tons of them, there\u2019s a chance you might run into a few issues here and there.<\/p>\n<p>The easy fix, of course, is doing backups. EBS provides a great tool for this\u2014the snapshot feature. You can create a snapshot, which acts as a backup stored in S3, which is much more durable. In the event of an EBS failure, you can restore from backup. You don\u2019t have to automate this yourself, as EBS Lifecycle Manager can handle it for you, but it isn\u2019t enabled by default. You\u2019ll, of course, need to pay the additional storage costs associated with storing data in S3, but it is cheaper than EBS.<\/p>\n<p>AWS doesn\u2019t try to hide this fact, and recommends doing regular snapshot backups. Most people will also recommend doing backups in <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/general\/\" data-internallinksmanager029f6b8e52c=\"3\" title=\"General\" target=\"_blank\" rel=\"noopener\">general<\/a>, but it\u2019s easy to get caught up in the magic of the cloud and forget this fact. At the end of the day, it\u2019s just someone else\u2019s computer, and can fail like any other. An extreme example of this is in September 2019, when an AWS US-EAST-1 datacenter had a power outage and generator failure, taking out the EBS servers and the data with it.<\/p>\n<blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\">\n<p lang=\"en\" dir=\"ltr\">Amazon AWS had a power failure, their backup generators failed, which killed their EBS serversl, which took all of our data with it. Then it took them four days to figure this out and tell us about it.<\/p>\n<p>Reminder: The cloud is just a computer in Reston with a bad power supply.<\/p>\n<p>\u2014 Andy Hunt (@PragmaticAndy) <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/twitter.com\/PragmaticAndy\/status\/1168916144121634818?ref_src=twsrc%5Etfw\">September 3, 2019<\/a><\/p>\n<\/blockquote>\n<p>The primary drive behind high-availability architecture and cloud computing in general is making sure that when isolated failures inevitably happen, it doesn\u2019t take down the whole application. You should still take steps to prevent failures in the first place, but sometimes, like with hard drives, it\u2019s a hardware problem, not something you can fix with code.<\/p>\n<p>S3, on the other hand, is very secure, with 99.999999999% of durability (that\u2019s eleven nines). If you store 10,000,000 objects in S3, you can on average expect to incur a loss of a single object once every 10,000 years. This is because unlike EBS, S3 is fully replicated across a minimum of three availability zones, and constantly monitored for drive failures within each zone. Even if an entire datacenter goes up in flames, your S3 buckets and the snapshots in them, should still be safe.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"How_Do_EBS_Snapshots_Work\"><\/span>How Do EBS Snapshots Work?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>EBS snapshots are incremental backups. Each subsequent backup will only store the data that has changed, so you won\u2019t rack up crazy storage costs doing regular snapshots.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"imgchk9 alignnone wp-image-5595 size-full\" src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/07\/bd4799fe.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"EBS snapshots.\" width=\"700\" height=\"614\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Turning them on is fairly simple. From the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/console.aws.amazon.com\/ec2\/v2\/?tag=reviewgeek-20\">EC2 Console<\/a>, head over to Elastic Block Store &gt; Lifecycle Manager in the sidebar, and create a new policy.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"imgchk9 alignnone wp-image-5596 size-full\" src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/07\/e2aad27c.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Elastic Block Store &gt; Lifecycle Manager to create a new policy.\" width=\"402\" height=\"146\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You\u2019ll need to specify a tag for this policy to apply to. This can be the name of a single EBS volume, or a blanket tag that applies to everything.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"imgchk9 alignnone wp-image-5597 size-full\" src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/07\/53f9337c.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Specify tag for policy to apply to.\" width=\"700\" height=\"259\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You can set the schedule for this policy as well as the policy for snapshot retention. You don\u2019t usually need to be keeping extended backups, so a handful of them depending on the snapshot frequency should be fine.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"imgchk9 alignnone wp-image-5598 size-full\" src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/07\/c9b938f9.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Set schedule for policy and policy for snapshot retention.\" width=\"700\" height=\"323\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>If you\u2019re serious about high availability, you can also enable Fast Snapshot Restore, which will make restoration entirely instant. However, <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/aws.amazon.com\/ebs\/pricing\/?tag=reviewgeek-20\">it\u2019s pretty expensive,<\/a> so this isn\u2019t something everyone should enable.\n<\/div>\n<p><script async src=\"\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong>\n<\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.cloudsavvyit.com\/5590\/ebs-volumes-arent-safe-from-failure-backup-to-s3\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#Why You Should Backup Your AWS EBS Volumes (And How to Do It) \u2013 CloudSavvy IT&#8221; EBS is a block storage service offered by AWS. If you\u2019re running an EC2 instance, you\u2019re definitely using it, as it serves as the storage disk for your server. However, it\u2019s not safe from failures, and you should still&#8230;<\/p>\n","protected":false},"author":1,"featured_media":307692,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/06\/e601b806.png","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-307691","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/307691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=307691"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/307691\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/307692"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=307691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=307691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=307691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}