This guide covers amazon EC2 Backup & Restore step by step, with every setting in the order you will use it.


dns LAB TOPOLOGY & PREREQUISITES
# example values used while writing and testing this guide
AWS ACCOUNT
LAB ENVIRONMENT
VALIDATION
01constructionAmazon EC2 Backup & Restore: Manual On-Demand Backup
Configure an on-demand AWS Backup job of an EC2 instance
1. From AWS Management Console, search for AWS Backup and open AWS Backup console.
After that, confirm the highlighted setting before the next step.
In addition, double-check the region selector at the top of the console.
2. On the left side of the AWS Backup console, under My account, choose Settings. On the Service opt-in page, select the Configure resources
However, if your console wording differs, match the highlighted setting instead of the exact label.
Meanwhile, keep the default values unless the lab says otherwise.
3. Enable EC2, disable all other and Confirm
Select the Dashboard on the left navigation pane and select the Create an on-demand backup
Besides that, the screenshots below show exactly where each option lives.
Besides that, a screenshot below shows exactly where the option lives.
After that, confirm the highlighted setting before the next step.
4. On the Create on-demand backup page, choose EC2for Amazon EC2 instance.Part 2: The On-Demand Backup Job
Meanwhile, once the service opt-in is set, the backup job itself takes only a few clicks.
However, if your console wording differs, match the highlighted setting instead of the exact label.
5. Choose your Instance ID of the EC2 resource that you created before (MyUbuntu-XXXX).
In addition, double-check the region selector at the top of the console. Meanwhile, keep the default values unless the lab says otherwise.
7. In the Retention period section, set Retention period of 7 days.
8. In the Backup vault section, create a new backup vault.
9. Enter a name for your backup vault as “webapp-XXXX”
Therefore, take a snapshot or a checkpoint before you continue.
Besides that, the screenshots below show exactly where each option lives. Therefore, take a snapshot or a checkpoint before you continue. After that, confirm the highlighted setting before the next step. After that, confirm the highlighted setting before the next step.
10. Back on the Create on-demand backup page, after you have created a new vault, choose the Default role for the IAM role.
11. Select the Create on-demand backup. As you selected “Create backup now” option, this will backup the EC2 instance and take you to the Jobs page, where you will see a list of jobs.
12. In the Jobs panel under My account, ensure the Backup jobs tab is selected. After some time, the Status of the backup job will go from Created to Completed, meaning the EC2 instance was backed up.

However, if your console wording differs, match the highlighted setting instead of the exact label.
02downloadBackup Option 2: Amazon EC2 Backup & Restore on a Schedule
Configure an automatic AWS Backup job of an EC2 instance
Instead of on demand backup, you can make a plan for a backup as shown below.
1. In the AWS Backup console, under My account, select Backup plans on the left rail, and then select the Create Backup plan button.
Backup plan name – mybackup-plan-XXXX
Backup rule name – backup-rule-XXXX
In addition, double-check the region selector at the top of the console.
Backup vault – webapp-XXXX
Backup Frequency – Daily
Therefore, take a snapshot or a checkpoint before you continue.
Backup window – Default backup window.
Transition to cold storage – Never
Meanwhile, keep the default values unless the lab says otherwise.
Retention period – 7 Days
Copy to destination: leave it as the default. (Note: Cross-region copy incurs additional data transfer costs.)
Besides that, the screenshots below show exactly where each option lives.
However, if your console wording differs, match the highlighted setting instead of the exact label. After that, confirm the highlighted setting before the next step.
3. When you assign a resource to a backup plan, that resource will be backed up automatically according to the backup plan. (default 5 AM UTC)
Assign resources to the backup plan
1. Select the created backup plan (mybackup-plan-XXXX) and select the Assign resources button.
2. For assign resources, use the following settings.
Resource assignment name: EC2-resource-XXXX.
However, if your console wording differs, match the highlighted setting instead of the exact label.
IAM Role: Default role. In short, Amazon EC2 Backup & Restore works best when you follow the order above and verify each step.
In addition, double-check the region selector at the top of the console. Besides that, a screenshot below shows exactly where the option lives. Therefore, take a snapshot or a checkpoint before you continue. However, before the plan saves, check the rule name and the vault assignment on the same page. Meanwhile, keep the default values unless the lab says otherwise. Meanwhile, keep the default values unless the lab says otherwise.
Part 2: Rules, Vault and Frequency

After that, confirm the highlighted setting before the next step.
03usbRestoring Amazon EC2 Backup & Restore Jobs
1. First, terminate the EC2 Instance MyUbuntu-XXXX from the instance list in EC2 dashboard.
2. Navigate to your backup vault and select the latest recovery point ID. It should show the detail of the recovery point.
Therefore, take a snapshot or a checkpoint before you continue.
3. To restore the EC2 instance, click on the Restore button and complete the restore process. A new restore job should be created and it should be in progress for few minutes.
In addition, double-check the region selector at the top of the console.
[caption id="attachment_747" align="alignnone" width="1186"]
After that, confirm the highlighted setting before the next step. Therefore, take a snapshot or a checkpoint before you continue.
4. Wait for the restore job to complete. After the restore is complete, navigate to EC2 dashboard and make sure you see the restored EC2 instance. The restored EC2 instance will not have a name.
Meanwhile, keep the default values unless the lab says otherwise.
Cleanup:
1. Terminate all EC2 instances from EC2 Dashboard.
2. Go to AWS Backup and open your backup vault (webapp-XXXX). Delete the recovery point and the vault itself.
3. Open your backup plan (mybackup-plan-XXXX). Delete the resource assignment and the backup plan itself.
Related Tutorials:
How to Create Amazon EC2 Instances
In short, Amazon EC2 Backup & Restore works best when you follow the order above and verify each step.
Besides that, the screenshots below show exactly where each option lives.
AWS Projects for Beginners: Practice Ideas for Learning Cloud
Finish this lab, then continue down the track. Each guide builds on the one before it.

