EBS snapshots, which are block-level incremental snapshots, certainly make an efficient and cost-effective solution for backup in the EC2 environment. This article will help you understand the procedure to restore an EC2 instance by using a snapshot. After an EC2 instance is configured for backup, Phoenix creates backups and stores them in regions and accounts that you specify in the backup policy. You can see those backups on the instance page of the Phoenix Management Console. Perform the following steps to restore an EC2 instance using a snapshot.
- Log in to the Phoenix Management Console.
- Select an organization from the top menu.
- On the top menu, click Protect > AWS Resources.
- On the AWS Accounts page, select an account from the left menu or click on the account name.
- On the left pane, click Resources > Compute.
- On the Compute page, click on the resource name of the EC2 instance that you want to restore.
- On the instance page, click on the Backups tab.
- Under the Backups tab, select a backup with the type as Snapshot. Ensure that you select a snapshot that is stored in the region where you want to restore the EC2 instance.
- After you select a snapshot that you want to use, click Restore. The Restore Snapshot window appears.
- Choose the Restore as an Instance option to launch an instance from this snapshot. You can restore either by using the Selected Snapshot settings or Last Synced Settings to automatically update the General, Location, Security, and Block Device Mappings (if applicable) from the snapshot. You also have the option to manually specify the instance settings. However, in case you triggered the backup job manually, you must restore by manually entering the instance settings by providing the details in the following sections:
Provide a name of the restored EC2 instance. By default, Phoenix adds the name of the original EC2 instance.
|Architecture||Choose a processor architecture for the instance; for example, i386.|
|Instance Type||Choose an instance type of the restored EC2 instance. By default, Phoenix selects the original EC2 instance type. Not all instance types are supported in all regions. Before you restore an EC2 instance, check with AWS on the instance types and the regions in which the instances are supported if you run into issues with the restore. For more information, see Amazon EC2 instance types [External link to an AWS web page].|
Enter the tag key that you want to use. By default, Phoenix adds the following tags
|Value||Enter the value of the tag.|
By default, Phoenix adds the following tags:
Tags from the source EC2 instance (based on the backup policy)
Tags from the backup policy that created the AMI
Tags added in the AMI
Phoenix adds a few extra tags such as: Created by application: Druva and To be retained for <the retention period>.
For more information, see Tagging your Amazon EC2 resources [External link to AWS documentation].
|VPC||Choose a virtual private cloud (VPC) where you want the restored EC2 instance to run. For more information, see What is Amazon VPC? [External link to AWS documentation]. This is a mandatory field.|
|Subnet||Choose a subnet of the VPC where you want the restored EC2 instance to run.|
|Virtualization||Choose a virtualization type of the restored EC2 instance. For more information, see Linux AMI Virtualization Types [External link to AWS documentation].|
|Key Name||Choose a key pair for the EC2 instance. If you plan on remotely connecting to the restored EC2 instance, select a key pair created in your account. For more information, see Amazon EC2 key pairs [External link to AWS documentation].|
|Security Groups||Choose a security group for the restored EC2 instance. For more information, see Security Groups for your VPC [External link to AWS documentation].|
|Instance Profile||Choose an instance profile for the restored EC2 instance. For more information, see Using Instance Profiles [External link to AWS documentation].|
- Once you are happy with your settings, you can click on the Restore Snapshot to Instance button to complete the restore process.
Phoenix launches an EC2 instance based on the settings provided in the Restore Snapshot window. After the EC2 instance is launched, you are navigated to Jobs > Restore page. It may take a few seconds to list the restore job that you run click on the refresh icon .
To see the restored EC2 instance listed under the resources page, navigate to Resources > Compute using the left pane, and then click on the refresh icon .