You can enable created automatic snapshot policies for disks. After an automatic snapshot policy is enabled for a disk, snapshots are automatically created for the disk based on the policy.
Method 1: Enable or disable an automatic snapshot policy on the Snapshots page
On the Snapshots page of the ECS console, you can enable or disable an automatic snapshot policy for a system disk or data disk.
Log on to the ECS console.
In the left-side navigation pane, choose .
In the upper-left corner of the top navigation bar, select a region.
On the Snapshots page, click the Automatic Snapshot Policies tab.
On the Automatic Snapshot Policies tab, find the automatic snapshot policy that you want to manage. In the Actions column, click Enable or Disable Policy.
In the Enable or Disable Policy dialog box, enable or disable the automatic snapshot policy for disks.
Enable the automatic snapshot policy for disks.
Click the Disks Without Policy Enabled tab.
Select disks and click Enable Policy in the lower part of the tab.
Disable the automatic snapshot policy for disks.
Click the Disks with Policy Enabled tab.
Select disks and click Disable Policy in the lower part of the tab.
Method 2: Enable an automatic snapshot policy when you create an instance
When you create an Elastic Compute Service (ECS) instance, you can enable an automatic snapshot policy for the system disk or data disks of the instance.
Log on to the ECS console.
In the left-side navigation pane, choose .
In the upper-left corner of the top navigation bar, select a region.
On the Instances page, click Create Instance.
In the Basic Configurations step, scroll down to the Snapshot section and select an automatic snapshot policy for the system disk or data disks.
If no automatic snapshot policies are available, click Create Automatic Snapshot Policy to go to the Automatic Snapshot Policies tab of the Snapshots page and create an automatic snapshot policy. For more information, see Create an automatic snapshot policy.
For information about the other parameters and steps to create an instance, see Create an instance by using the wizard.
Method 3: Enable or disable an automatic snapshot policy on the Disks page
On the Disks page of the ECS console, you can enable or disable an automatic snapshot policy for a system disk or data disk.
Log on to the ECS console.
In the left-side navigation pane, choose .
In the upper-left corner of the top navigation bar, select a region.
On the Disks page, find the disk that you want to manage and click Configure Automatic Snapshot Policy in the Actions column.
NoteIf a disk is in the Unattached state and has never been attached to instances, the data that is stored on the disk remains unchanged. In this case, you do not need to create snapshots for the disk and cannot configure an automatic snapshot policy for the disk.
In the Configure Automatic Snapshot Policy dialog box, enable or disable an automatic snapshot policy for the disk.
Scenario in which automatic snapshot policies are created and an automatic snapshot policy is associated with the disk
If automatic snapshot policies exist in the current region and an automatic snapshot policy is enabled for the disk, you can change or disable the policy for the disk.
Change the automatic snapshot policy that is associated with the disk.
Select a different policy or Create Automatic Snapshot Policy from the Automatic Snapshot Policy drop-down list.
Click OK.
Disable the automatic snapshot policy for the disk.
Turn off the
switch.
Click OK.
Scenario in which automatic snapshot policies are created and no automatic snapshot policy is associated with the disk
If automatic snapshot policies exist in the current region but no automatic snapshot policy is enabled for the disk, you can enable an automatic snapshot policy for the disk.
Select a policy or Create Automatic Snapshot Policy from the Automatic Snapshot Policy drop-down list.
Click OK.
Scenario in which no automatic snapshot policies are created
If no automatic snapshot policies exist in the current region, you can create an automatic snapshot policy for the disk based on your business requirements.
Set the Automatic Snapshot Policy parameter to Back Up Every Day, Back Up Every Week, or Use Custom Policy.
Select Create Automatic Snapshot Policy or the default policy default_policy from the Policy Details drop-down list and configure the other parameters for the policy.
Click OK.
Perform relevant operations
View the number of disks that are associated with an automatic snapshot policy
In the left-side navigation pane of the ECS console, choose
.On the Snapshots page, click the Automatic Snapshot Policies tab.
In the Associated Disks column corresponding to an automatic snapshot policy, view the number of disks that are associated with the policy.
You can click the number to go to the Disks page and view the details of the disks.
View the automatic snapshots that are created based on an automatic snapshot policy
When a point in time that is designated in an automatic snapshot policy arrives, a snapshot whose name starts with auto2.0 is automatically created for each disk that is associated with the policy. On the Disk Snapshots tab of the Snapshots page, Automatic Creation is displayed in the Creation Method column corresponding to the snapshot.
If a snapshot is being manually or automatically created for a disk when a point in time designed in the associated automatic snapshot policy arrives, the automatic snapshot cannot be created based on the policy at the point in time. An automatic snapshot is created for the disk at the next point in time that is designated in the automatic snapshot policy.
If an automatic snapshot is being created for a disk, you cannot create a manual snapshot for the disk. Wait until the automatic snapshot is created.
All snapshots that are created based on automatic snapshot policies are named in the format of auto2.0_yyyyMMdd_SnapshotPolicyId.
auto2.0: the automatic snapshot.
yyyyMMdd: the date on which the snapshot is created. yyyy stands for year, MM for month, and dd for day.
SnapshotPolicyId: the ID of the automatic snapshot policy based on which the snapshot is created.
For example, auto2.0_20221019_sp-bp10ecsbl64i827e***** indicates that an automatic snapshot was created on October 19, 2022 based on the automatic snapshot policy whose ID is sp-bp10ecsbl64i827e*****.