If an ECS instance fails or encounters an operational error, you can use a backup point to roll back the instance or clone a new one. This topic describes how to restore an ECS instance.
Prerequisites
You have created an ECS instance backup. For more information, see Back up an ECS instance.
If the original ECS instance still exists, you can restore it directly. If the original instance is released, you must clone the backup to create a new instance.
How it works and post-restore considerations
How it works
To restore an instance, you select a backup point, which is a previously created snapshot. The restore process is the same whether the backup point is stored in the standard tier or archive tier. You can initiate a restore directly without first unfreezing or retrieving data from the archive tier.
Depending on the restore method, the system performs the following operations:
-
Direct restore: The system uses the data from the backup point to restore the cloud disks, including the system disk and data disks, of the original ECS instance. This ensures all files and configurations match the state of the backup point.
-
Clone: The system uses the data from the backup point to clone a new ECS instance. This ensures all files and configurations match the state of the backup point.
Post-restore considerations
-
If the instance relies on a domain controller, you may need to rejoin the domain after restoring. For more information, see Set up an AD domain on a Windows instance.
-
A cloned instance may have a different network configuration than the original. Adjust the network settings as needed.
Restore an instance by cloning
Log on to the Cloud Backup console.
-
In the navigation pane on the left, choose .
In the top navigation bar, select a region.
-
On the Backed-up ECS Instances tab, click the
icon next to the target ECS instance. -
On the Instance Protection tab, find an available backup point and click Clone.
-
In the Create ECS Instance from Backup panel, configure settings such as the VPC and vSwitch, and enter a hostname and an instance name.
-
Click Create.
NoteYou are charged for the new ECS instance based on ECS billing rules. For more information, see pay-as-you-go.
After the job starts, you can monitor the progress of the clone job on the Jobs page.
Restore an instance directly
Log on to the Cloud Backup console.
-
In the navigation pane on the left, choose .
In the top navigation bar, select a region.
-
On the Backed-up ECS Instances tab, click the
icon next to the target ECS instance. -
On the Instance Protection tab, find an available backup point and click Restore.
ImportantYou can restore an instance only if it is stopped and no backup job is in progress. When you restore an instance to a specific backup point, all data created on the protected cloud disks after that point is permanently deleted. Proceed with caution.
Alternatively, on the Instance Protection tab timeline view, click a target backup point, and then click Restore in the details pop-up.
-
In the dialog box that appears, select Start the ECS instance after the rollback if needed, and then click OK.
After the restore job starts, go to the Jobs page to view the status of the job. In the job list filtered by Restore Job, find the Rollback ECS job. The rollback is complete when the job status is Completed and the progress reaches 100%.