How to restore a AWS EBS Volume from a Snapshot
Step-by-Step Guide

Software Engineer at BMW, Oracle Certified Professional Java SE 11 Developer
Search for a command to run...
Step-by-Step Guide

Software Engineer at BMW, Oracle Certified Professional Java SE 11 Developer
No comments yet. Be the first to comment.
Two whole days of my life, down the drain! Thankfully, it was just my pet project, but I ended up sacrificing an entire weekend wrestling with this enigma. So, I'm writing this blog post to save you from the same fate. Problem: I am using Quarkus and...

Shebang Shebang is a combination of bash # and bang ! followed the the bash shell path. Shebang is simply an absolute path to the bash interpreter. #! /bin/bash Make a file executable To make a .sh file executable only for your user, use: chmod u+x...

1. Show tables The command \dt stands for describe tables and shows all tables in the database, equivalent to show tables in MySQL. \dt 2. Create user Run the following SQL command to create a user. Replace and 'password' with the desired username a...

How to set JAVA_HOME on macOS Monterey? First check which shell you are using (either bash or zsh). For zsh shell, we can put the environment variables at ~/.zshenv or ~/.zshrc.echo $SHELL /bin/zsh On Mac OS X 10.5 or later, we can use /usr/libexe...

Fork your open source project you want to contribute into your GitHub and clone your fork. git clone git@github.com:dcnis/mockito.git Show current configured remote repositories. The origin repo points to your fork on GitHub. git remote -v > origin ...

In our test, we first create an EBS Snapshot from an existing EBS volume. If you already have a snapshot, which you want to restore, you can skip this step and continue with step 2.
EC2 instance -> Storage and select your EBS volume.EBS Volume and select Actions -> Create snapshotDescription: My-EBS-SnapshotCreate snapshotEC2 -> Elastic Block Store -> Snapshots you can see the status of the newly created SnapshotCompletedEC2 -> Elastic Block Store -> Snapshots click on your newly created SnapshotActions and click Create volume from snapshotVolume type: Choose the same volume type as the old EBS volume e.q. gp3Size (GB): Choose the same size as the old EBSAvailability Zone: Choose the same availability zone as the old EBS volumeCreate volumeVolume-IdEC2 -> click on your EC2 instance -> StorageRoot device details your current Root device name usually /dev/sda1. This is the root device, which means you have to stop the instance first, in order to be able to replace it. /dev/sda1 - we need it later, when we want to attach the new volumeStop the EC2 instanceEBS root volume -> Actions -> Detach volumeEC2 -> Elastic Block Store -> VolumesActions -> Attach volumeInstance: Choose your EC2 instance-idDevice name: /dev/sda1 This must be the same device name as before!Attach volumeAvailable to In useIt's crucial to regularly practise your recovery plans. If you ever need need to restore your production EBS volume from a snapshot, you should not have to spend time researching how to do it. Instead, it is advisable, to have a step-by-step guide of the entire process. This is particularly important for production environments where time is limited and you may need to perform the recovery under pressure. I hope based on this guide, you can create your own step-by-step recovery plan for your production environment.