Restoring Amazon EC2 data
Use a restore job to restore EC2 data from a backup copy. For example, if data on an instance is lost or corrupted. You can define a job that restores data to the original availability zone or to a different availability zone in the same region, with different types of recovery options and configurations available.
Before you begin
About this task
To define an EC2 restore job, complete the following steps:
In the navigation panel, click , and
then select Restore to open the Restore wizard.
- You can also open the wizard by clicking .
- For a running summary of your selections in the wizard, click Preview Restore in the navigation panel in the wizard.
- The wizard is opened in the default setup mode. To run the wizard in advanced setup mode, select Advanced Setup. With advanced setup mode, you can set more options for your restore job.
- On the Select source page, take the following
- Click an account in the list to show the instances that are available for restore
operations. You can also use the search function to search for available instances. Enter all or
part of a name to locate instances that match the search criteria. You can use the wildcard
character (*) to represent all or part of a name. Use the View filter to toggle displayed instances.
- Click the plus icon next to the instance that you want to use as the source of the restore operation.
You can select more than one instance from the list. However, all selected instances must be in the same region.
If the instance has attached volumes, you can navigate to the volumes and select them for the restore operation. You cannot select both instances and attached volumes.
The selected instances or attached volumes are added to the restore list next to the account list. To remove an item from the list, click the minus icon next to the item.
- Click Next to continue.
- Click an account in the list to show the instances that are available for restore operations. You can also use the search function to search for available instances. Enter all or part of a name to locate instances that match the search criteria. You can use the wildcard character (*) to represent all or part of a name.
Complete the fields on the Source snapshot page to select the instance
snapshots that you want to restore and click Next to continue. The fields that are shown depend on the number of instances that were selected on the Select source page.
- If a single instance is selected, select the date range for the snapshots that you want to restore. The snapshots that are available for that date range are listed. Select the snapshot that you want to restore.
- If multiple instances are selected, select the date range for the snapshots they you want to restore. The instances that have snapshots within that date range are listed. For each instance, select the restore point that you want to restore.
On the Set destination page, specify the Availability Zone that you want
to restore instances to and click Next:
- Original Availability Zone
- Select this option to restore instances to the original Availability Zone.
- Alternate Availability Zone
- Select this option to restore instances to an Availability Zone that is different from the original Availability Zone, and then select the alternate location from the available resources.
- If you are restoring an attached volume, select the destination instance in the alternate Availability Zone and enter an optional device name in the Destination Attachment section.
- On the Set network page, change the subnet for each Availability
Zone if you selected Alternate Availability Zones on the Set
destination page. If you selected Original Availability Zone, no
settings are provided on this page. Click Next to continue. The Availability Zone subnet must be in the same region as the instances that are selected in step 2.
- On the Restore method page, you can change the name of the restored instance by entering the new instance name in the Rename Instance (optional) field. Click Next to continue.
If you are running the restore job in advanced mode, you can set
additional options as follows:
- Power on after recovery
- Toggle the power state of an instance after a recovery is run. Instances are powered on in the order in which they are recovered.
- Continue with restore even if it fails
- Toggle the recovery of an instance in a series if the previous instance recovery fails. If disabled, the restore job stops if the recovery of an instance fails.
- Run cleanup immediately on job failure
- This option enables the automatic cleanup of backup data as part of a restore job if the job fails. This option is selected by default. Do not clear this option unless instructed by IBM® Software Support for troubleshooting purposes.
- Restore instance tags
- Enable this option to restore tags that are applied to instances through EC2.
- Prepend prefix to instance name
- Enter a prefix to add to the names of restored instances.
- Append suffix to instance name
- Enter a suffix to add to the names of restored instances.
On the Apply scripts page, choose the following script options and click
- Select Pre-script to select an uploaded script, and an application or script server where the prescript runs. To select an application server where the script will run, clear the Use Script Server check box. Go to the page to configure scripts and script servers.
- Select Post-script to select an uploaded script and an application or script server where the postscript runs. To select an application server where the script runs, clear the Use Script Server check box. Navigate to the page to configure scripts and script servers.
- Select Continue job/task on script error to continue running the job
when the script that is associated with the job fails. When this option is enabled and the prescript
completes with a nonzero return code, the backup or restore job continues to run and the prescript
task status returns
COMPLETED. If a postscript completes with a nonzero return code, the postscript task status returns
COMPLETED. When this option is not selected, the backup or restore job does not run, and the prescript or postscript task status returns with a
- On the Review page, review your restore job settings and click Submit to create the job.
The begins after you click Submit, and an onDemandRestore record is added to the Job Sessions pane shortly. To view progress of the restore operation, expand the job. You can also download the log file by clicking the download icon .
All running jobs are viewable in thepage.