Skip to main content
Druva Documentation

Automated Disaster Recovery Testing for Amazon EC2

Overview

This article explains how the Automated Disaster Recovery testing functionality works for Amazon EC2 resources in CloudRanger.

Getting started

With our existing backup system in place, our new Automated Disaster Recovery (ADR) testing functionality allows you to test that the Amazon Machine Image (AMI) backups you are taking actually work successfully in practice.

Within this backup policy you will be able to define your Recovery Point Objective (RPO), or the point to Restore to. If the backup policy associated with the instances in your ADR policy is frequent enough to meet your requested RPO, then those instances will be restored together to an alternative Region. This process can run on demand or to a defined frequency. 

Our ADR testing ensures that all backup processes are working correctly, and we provide you with added peace of mind that you’ll be prepared for any disaster situation.

CloudRanger Automated Disaster Recovery testing

Step 1 – Create a backup policy

Create a backup policy for AMIs (This is important as ADR is dependant on a valid AMI being available in both the source and target regions). Go to the backup policies page and click on 'Create Policy'.

Policies.png

Step 2 -  Add AMI backup policy details

Fill in policy selecting AMIs and selecting new regions for the cross region copy, these will be used by the DR process.

overview.png

apply_policy.png 

When you are happy with your Backup policy settings, click 'Save Policy'

save.png

Step 3 – Choose execution option

Save the policy, and either wait for it to run on schedule or click on the 'Execute Now' button on the backup policies page.

execute now.png

This will run the policy, create the backups and copy them across to your chosen region. The logs can be found by opening the policy again and clicking on the logs button it the top of the page, it will show you the steps as they execute.

Step 4 – Create a Disaster Recovery Plan (DRP)

You now ready to create an Automated DR Policy, start by clicking on 'Disaster Recovery' menu item on the left-hand side of your dashboard.

disaster_recovery.png

Then click 'Create Plan'.

create_plan.png

 

Step 5 -  Enter your Disaster Recovery Plan values

CloudRanger can recover instances from AMIs taken with the backup policy you built above. Choose the region the instances are currently running in and then select the target region as the region you are copying to in the backup policy.

disaster_recovery_plan.png

Using the Instances search by instance Id and Instance Tag you can select the servers you wish to restore. 

Choose the time of the AMIs you want recover with. The system will look for matching AMIs based on the restore region, selected servers and a time of least as old as the desired RPO specified.

If there are no AMIs matching the criteria CloudRanger will show you what is missing.

restorable_backups.png

Step 6 – Environment mappings

If this is the first time you are running this restore policy you will want to clone the source networking to the destination region in the 'Environment Mappings' section.

Network and access settings require new values for the destination location of the restore. You can map the values from the Source Region to the Target Region. VPCs can be cloned and mapped automatically but Instance SSH Keys cannot be cloned and must be mapped manually

You do this by clicking on the destination region drop down and then selecting 'Clone Environment'. This will show a pop up with each of the source VPCs and checkboxes to select.

 

clone_environment.png

Clicking 'Start Clone' will start the Cloud Formation process which can take some time depending on the size. If you look in your AWS environment you will see the Cloud Formation stack being created. This process may take some time.

start_clone.png

Step 7 -  Confirm mappings

Once this is complete, this will then populate all the destination network infrastructure with the mappings from the source that were created. 

confirm_mappings.png

Step 8 - Disaster recovery testing

In the Disaster Recovery testing section, you can then choose the frequency of the schedules where you would like to automatically test created backups by temporarily restoring them to an instance.

disaster_recovery_testing.png

If you are happy with your DR Plan, then click 'SAVE POLICY'.

Step 9 – Executing manually

Finally, if required you can execute your Disaster Recovery Plan manually. You can do this by clicking the 'Execute Now' button on the Disaster Recovery Plans page and select the RPO. It defaults to now to get the latest backups you have.

drp_execute_now.png

You will then be presented with the screen where you can choose your Point In Time Restore. By clicking 'Restore' this will then recover your specific Amazon EC2 resources to your target region. 

point_in_time_restore.png

Looking for more information?

For more information on our Automated Disaster Recovery Testing functionality, or to arrange a demo of the functionality, please contact us at support@cloudranger.com