‫So we have this two gigabytes gp2 EBS volume available
‫to us and we can take a snapshot from it.
‫So if we do actions, we can create a snapshot.
‫So we can add a description, for example, demo snapshots
‫and then click on create snapshots.
‫So then on the left hand side menu, instead of volume
‫you can click on snapshots and snapshots should use a list
‫of all the snapshots you have.
‫And as you can see, we have one right here,
‫it is completed, it is 100% available,
‫and we get some information around that snapshot itself.
‫First of all, what we can do is
‫that we can copy this snapshot into another region.
‫So if you right click and do copy snapshots
‫then as you can see, you can copy the snapshot
‫into any destination region that you want.
‫And this can come in very handy in case you want
‫for example, to have a disaster recovery strategy
‫to make sure your data is backed
‫up in another region of AWS.
‫So I won't do so but you get the idea.
‫Another thing I can do is take the snapshot
‫and I can recreate a volume from it.
‫So, action, create volume from snapshots
‫and we choose a two gigabytes, gp2 volume
‫and then the target AZ doesn't have to
‫remain eu-west-1a, it can be, for example, eu-west-1b.
‫And we can also encrypt this volume
‫if we wanted to and add some tags.
‫And so as we can see, when we click on create volume
‫what's going to happen is that
‫if we go back into our volumes,
‫well now we have two volumes, as you can see.
‫And one of them, this one, was restored through snapshots.
‫Okay, and it is an eu-west-1b.
‫So the idea is that thanks to snapshots
‫we can quote end quote
‫copy EBS volumes across different availability zones.
‫And that's very handy.
‫If we look again at snapshots
‫we can have a look at what's called the recycle bin.
‫So the recycle bin is a way
‫for you to protect your EBS snapshots
‫from accidental deletion,
‫as well as your Amazon Machine Images.
‫So we can create a retention rule
‫and saying demo retention rule.
‫And then we're saying
‫we'll apply this to all EBS snapshots.
‫And I want them to be retained for one day after deletion
‫which allows me to recover them.
‫So if I click on create retention rule
‫now it has been created
‫and it is going to appear right here at some point, okay.
‫So let's refresh the page for us to see it, here it is.
‫And now on the resources, we can see
‫if we have resources in the recycle bin.
‫So let's go back into our snapshots in the EC2 console.
‫So I'm going to go into EC2, here we go snapshots.
‫Little shortcut.
‫And what I'm going to do is take the snapshots.
‫And first, before I delete it
‫I wanna show you the storage tier.
‫So right now it is a standard storage tier, okay.
‫But you can move the storage tier by archiving snapshots.
‫And so like you to move the storage tier
‫into another pricing level, but if you want to restore it
‫of course you will have to wait 24 to 72 hours.
‫So just to show you, but anyway
‫let's go ahead and delete the snapshot.
‫So we'll delete the snapshots, as you can see it's gone.
‫And before it used to completely delete the snapshots
‫and you couldn't recover it, okay.
‫As you can see, it's gone.
‫But now, thanks to the recycle bin,
‫well, if I refresh here my resources
‫I can now see that my snapshot has appeared here.
‫And what I can do is click on it and recover it.
‫Yes, recover resources and voila.
‫It's back into my snapshots on my EC2 console.
‫Okay, that was pretty awesome, right?
‫Okay, that's it for EBS snapshots.
‫I hope you liked it.
‫And now will see you in the next lecture.