Using a Backup to Create an Image
CBR allows you to create images using ECS backups. You can use the images to provision ECSs to rapidly restore service running environments.
With cross-region replication, CBR allows you to replicate backups to destination regions and then create images. You can use the images to provision ECSs.
Prerequisites
- Confirm that the following operations have been performed before you use an ECS backup to create an image:
- You have optimized the Linux ECS (referring to Optimizing a Linux Private Image) and installed Cloud-Init (referring to Installing Cloud-Init).
- You have optimized the Windows ECS (referring to Optimizing a Windows Private Image) and installed Cloudbase-Init (referring to Installing Cloudbase-Init).
- A backup can be used to create an image in either of the following scenarios: 1. The backup is in the Available state. 2. The backup is in the Creating state which is marked with Image can be created.
Once a backup creation starts, the backup enters the Creating state. After a period of time, a message stating "Image can be created" is displayed under Creating. In this case, the backup can be used for creating an image, even though it is still being created and cannot be used for restoration.
- The backup you want to use to create an image contains the system disk data.
- Only ECS backups can be used to create images.
Function Description
- Images created using a backup are the same, so CBR allows you to use a backup to create only one full-ECS image that contains the whole data of the system disk and data disks of an ECS, in order to save the image quota. After an image is created, you can use the image to provision multiple ECSs in a batch.
- A backup with an image created cannot be directly deleted. If you want to delete such a backup, delete its image first. If a backup is automatically generated based on a backup policy and the backup has been used to create an image, the backup will not be counted as a retained backup and will not be deleted automatically.
- A backup is compressed when it is used to create an image. Therefore, the size of the generated image is smaller than that of the backup.
Procedure
- Log in to CBR Console.
- Log in to the management console.
- Click
in the upper left corner and select your region and project. - Choose Storage > Cloud Backup and Recovery. Select a backup tab from the left navigation pane.
- Click the Backups tab. Locate the desired backup. For details, see Querying a Backup.
- In the row of the backup, choose More > Create Image.
- Create an image by referring to Creating a Full-ECS Image Using a Cloud Server Backup in the Image Management Service User Guide.
- If you want to use an image to provision ECSs, see Creating ECSs Using an Image in the Image Management Service User Guide.
Last Article: Deleting a Backup
Next Article: Using a Backup to Create a Disk
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.