1 00:00:00,320 --> 00:00:03,900 So we have this two gigabytes gp2 EBS volume available 2 00:00:03,900 --> 00:00:06,730 to us and we can take a snapshot from it. 3 00:00:06,730 --> 00:00:10,520 So if we do actions, we can create a snapshot. 4 00:00:10,520 --> 00:00:14,280 So we can add a description, for example, demo snapshots 5 00:00:14,280 --> 00:00:16,850 and then click on create snapshots. 6 00:00:16,850 --> 00:00:20,170 So then on the left hand side menu, instead of volume 7 00:00:20,170 --> 00:00:23,690 you can click on snapshots and snapshots should use a list 8 00:00:23,690 --> 00:00:25,200 of all the snapshots you have. 9 00:00:25,200 --> 00:00:27,310 And as you can see, we have one right here, 10 00:00:27,310 --> 00:00:29,955 it is completed, it is 100% available, 11 00:00:29,955 --> 00:00:32,870 and we get some information around that snapshot itself. 12 00:00:32,870 --> 00:00:34,590 First of all, what we can do is 13 00:00:34,590 --> 00:00:37,890 that we can copy this snapshot into another region. 14 00:00:37,890 --> 00:00:40,670 So if you right click and do copy snapshots 15 00:00:40,670 --> 00:00:42,610 then as you can see, you can copy the snapshot 16 00:00:42,610 --> 00:00:45,126 into any destination region that you want. 17 00:00:45,126 --> 00:00:48,550 And this can come in very handy in case you want 18 00:00:48,550 --> 00:00:51,010 for example, to have a disaster recovery strategy 19 00:00:51,010 --> 00:00:52,380 to make sure your data is backed 20 00:00:52,380 --> 00:00:55,123 up in another region of AWS. 21 00:00:55,123 --> 00:00:58,000 So I won't do so but you get the idea. 22 00:00:58,000 --> 00:01:00,380 Another thing I can do is take the snapshot 23 00:01:00,380 --> 00:01:03,400 and I can recreate a volume from it. 24 00:01:03,400 --> 00:01:07,000 So, action, create volume from snapshots 25 00:01:07,000 --> 00:01:10,450 and we choose a two gigabytes, gp2 volume 26 00:01:10,450 --> 00:01:13,570 and then the target AZ doesn't have to 27 00:01:13,570 --> 00:01:18,230 remain eu-west-1a, it can be, for example, eu-west-1b. 28 00:01:18,230 --> 00:01:19,592 And we can also encrypt this volume 29 00:01:19,592 --> 00:01:21,800 if we wanted to and add some tags. 30 00:01:21,800 --> 00:01:24,930 And so as we can see, when we click on create volume 31 00:01:24,930 --> 00:01:26,500 what's going to happen is that 32 00:01:26,500 --> 00:01:28,900 if we go back into our volumes, 33 00:01:28,900 --> 00:01:31,770 well now we have two volumes, as you can see. 34 00:01:31,770 --> 00:01:36,150 And one of them, this one, was restored through snapshots. 35 00:01:36,150 --> 00:01:39,200 Okay, and it is an eu-west-1b. 36 00:01:39,200 --> 00:01:40,720 So the idea is that thanks to snapshots 37 00:01:40,720 --> 00:01:42,460 we can quote end quote 38 00:01:42,460 --> 00:01:46,550 copy EBS volumes across different availability zones. 39 00:01:46,550 --> 00:01:47,942 And that's very handy. 40 00:01:47,942 --> 00:01:49,700 If we look again at snapshots 41 00:01:49,700 --> 00:01:53,310 we can have a look at what's called the recycle bin. 42 00:01:53,310 --> 00:01:54,730 So the recycle bin is a way 43 00:01:54,730 --> 00:01:57,120 for you to protect your EBS snapshots 44 00:01:57,120 --> 00:01:58,530 from accidental deletion, 45 00:01:58,530 --> 00:02:02,290 as well as your Amazon Machine Images. 46 00:02:02,290 --> 00:02:04,460 So we can create a retention rule 47 00:02:04,460 --> 00:02:07,763 and saying demo retention rule. 48 00:02:09,210 --> 00:02:10,330 And then we're saying 49 00:02:10,330 --> 00:02:12,930 we'll apply this to all EBS snapshots. 50 00:02:12,930 --> 00:02:15,890 And I want them to be retained for one day after deletion 51 00:02:15,890 --> 00:02:17,560 which allows me to recover them. 52 00:02:17,560 --> 00:02:20,260 So if I click on create retention rule 53 00:02:20,260 --> 00:02:21,800 now it has been created 54 00:02:21,800 --> 00:02:24,820 and it is going to appear right here at some point, okay. 55 00:02:24,820 --> 00:02:28,115 So let's refresh the page for us to see it, here it is. 56 00:02:28,115 --> 00:02:30,890 And now on the resources, we can see 57 00:02:30,890 --> 00:02:33,560 if we have resources in the recycle bin. 58 00:02:33,560 --> 00:02:37,890 So let's go back into our snapshots in the EC2 console. 59 00:02:37,890 --> 00:02:41,330 So I'm going to go into EC2, here we go snapshots. 60 00:02:41,330 --> 00:02:42,860 Little shortcut. 61 00:02:42,860 --> 00:02:45,750 And what I'm going to do is take the snapshots. 62 00:02:45,750 --> 00:02:47,020 And first, before I delete it 63 00:02:47,020 --> 00:02:48,270 I wanna show you the storage tier. 64 00:02:48,270 --> 00:02:51,390 So right now it is a standard storage tier, okay. 65 00:02:51,390 --> 00:02:55,200 But you can move the storage tier by archiving snapshots. 66 00:02:55,200 --> 00:02:57,240 And so like you to move the storage tier 67 00:02:57,240 --> 00:03:00,630 into another pricing level, but if you want to restore it 68 00:03:00,630 --> 00:03:03,540 of course you will have to wait 24 to 72 hours. 69 00:03:03,540 --> 00:03:05,010 So just to show you, but anyway 70 00:03:05,010 --> 00:03:06,620 let's go ahead and delete the snapshot. 71 00:03:06,620 --> 00:03:09,920 So we'll delete the snapshots, as you can see it's gone. 72 00:03:09,920 --> 00:03:12,980 And before it used to completely delete the snapshots 73 00:03:12,980 --> 00:03:14,620 and you couldn't recover it, okay. 74 00:03:14,620 --> 00:03:15,810 As you can see, it's gone. 75 00:03:15,810 --> 00:03:18,180 But now, thanks to the recycle bin, 76 00:03:18,180 --> 00:03:20,720 well, if I refresh here my resources 77 00:03:22,580 --> 00:03:25,210 I can now see that my snapshot has appeared here. 78 00:03:25,210 --> 00:03:28,380 And what I can do is click on it and recover it. 79 00:03:28,380 --> 00:03:31,370 Yes, recover resources and voila. 80 00:03:31,370 --> 00:03:34,830 It's back into my snapshots on my EC2 console. 81 00:03:34,830 --> 00:03:37,070 Okay, that was pretty awesome, right? 82 00:03:37,070 --> 00:03:38,740 Okay, that's it for EBS snapshots. 83 00:03:38,740 --> 00:03:39,810 I hope you liked it. 84 00:03:39,810 --> 00:03:41,860 And now will see you in the next lecture.