Policy center

Updated at:

Create, modify, and associate backup policies. A backup policy defines how often backups run, how long backup data is retained, and when it moves to the archive tier. A policy is independent of data sources: you can associate one policy with multiple data sources to generate backup plans.

Scope and limitations

The following limitations apply to the data sources and regions supported by backup policies:

  • Backup policies are divided into two types: general backup policies and ECS instance backup policies. General backup policies apply to ECS file backup (Standard), OSS backup, Alibaba Cloud NAS backup, on-premises NAS backup, Tablestore backup, CPFS for AI Computing backup, CPFS backup, and on-premises file backup. ECS instance backup policies enable full backups of ECS instances.

  • Supported regions are displayed in the console. You can view them on the Policy Center page. For more information, see Features available by region.

  • Automatic archiving applies only to ECS file backup (Standard), ECS instance backup, OSS backup, Alibaba Cloud NAS backup, on-premises NAS backup, CPFS for AI Computing backup, CPFS backup, and on-premises file backup.

  • Backup Point Virus Detection applies only to ECS file backup (Standard), on-premises file backup, OSS backup, Alibaba Cloud NAS backup, on-premises NAS backup, and CPFS for AI Computing backup.

  • Associate Resource Tag supports tag-based association only for ECS instance backup, ECS file backup (Standard), OSS backup, Alibaba Cloud NAS backup, Tablestore backup, and CPFS for AI Computing backup.

Prerequisites

Activate Cloud Backup first. Activating Cloud Backup is free of charge.

Create a backup policy

Create a backup policy before you back up data sources.

Note

For the China (Hohhot) and China (Ulanqab) regions, use Create a backup policy (new version).

  1. Log on to the Cloud Backup console.

  2. In the navigation pane on the left, choose Backup > Policy Center.

  3. In the top navigation bar, select a region.

  4. On the Policy Center page, click Create Backup Policy.

  5. In the Create Backup Policy panel, configure the policy type, policy name, backup schedule, lifecycle, automatic archiving, backup vault, and replication policy, and then click OK.

    You can also configure Data Security (including the Immutable Backup and Backup Point Virus Detection switches), the Backup Vault Encryption Method (for example, Fully managed by Cloud Backup), and Resource Tags.

    General backup policy parameters

    Important

    Choose the policy type that fits your business requirements, and review the parameter descriptions to make sure the configuration meets your expectations.

    Parameter

    Description

    Policy Type

    Select the backup policy type.

    Applies to all backup types except ECS instance backup, including ECS files, on-premises files, OSS, Alibaba Cloud NAS, CPFS, Tablestore, and on-premises NAS. Backup data is stored in a general backup vault.

    Policy Name

    Enter a custom name for the backup policy.

    The backup policy name can be up to 64 characters long and must not begin or end with a space.

    Schedule

    Backup Frequency

    Set how often backups run.

    Note

    If a backup task starts while the previous one is still running, the current task is skipped and starts at the next scheduled time.

    • Hourly: runs a backup at fixed hourly intervals.

    • Daily: runs a backup at fixed daily intervals.

    • Weekly: runs a backup on the specified days of the week.

    • Monthly: runs a backup in the specified months.

    First Execution Time

    Specify when the policy first runs.

    Time Interval

    Specify the interval between backups.

    Incremental Backup Interval

    Only Tablestore requires this setting. For other data sources, no configuration is needed: Cloud Backup automatically performs full or incremental backups.

    • No: no incremental backups.

    • Specify Time: the interval between incremental Tablestore backups.

    Lifecycle

    Retention Period

    Set how long backup data is retained.

    • Permanent: retains backup data permanently, without deletion.

    • Specify Time: the total retention period for backup data, in days. The maximum value cannot exceed 999 years after conversion. For example, a value of 210 days means backup data is retained for 210 days in total and deleted upon expiration.

      When Days to Transfer to Archive Tier is configured, data in the archive tier is retained for at least 60 days. Therefore, set the total retention period to no less than the sum of the automatic archiving trigger (in days) and the minimum archive-tier retention period (60 days).

      For example, if data is automatically archived 30 days after it is backed up, set the total retention period to at least 30 + 60 = 90 days.

    Special Retention Period

    In addition to standard retention, Cloud Backup lets you set a longer retention period for the first available backup version within a specified cycle (weekly, monthly, or yearly) to meet data security requirements. This serves as the special retention policy of the backup policy. A backup policy can apply weekly, monthly, and yearly special retention rules at the same time. For more information, see Special retention periods for tiered backups.

    Important

    Special retention periods are constrained by the retention period. When you configure a special retention period, follow the system recommendations. The following rules generally apply:

    • Special retention periods cannot be set for backups that are retained forever.

    • The special retention period must be longer than the retention period.

    • The special retention period cannot exceed 999 years after conversion from weeks, months, or years.

    Keep At Least One Backup Version

    With this option enabled, the latest backup version generated by the backup plan is not deleted when its retention period expires or when it is deleted by mistake. This prevents the situation where no backup version is available for restore because the backup plan is misconfigured. For more information, see Keep At Least One Backup Version.

    Important
    • This feature takes effect only after a data source is associated with the backup policy.

    • Backup points replicated across regions by general backup policies still retain at least one version.

    • Tablestore backup is not supported.

    • The latest backup is not automatically moved to the archive tier.

    Automatic Archiving

    Days to Transfer to Archive Tier

    Specifies the number of days after which backup data moves to the archive tier. By default, backup data is stored in the standard tier of the backup vault. For backup data that must be kept long term, use this feature to move backup points from the standard tier to the archive tier and reduce data protection costs.

    Important
    • When you use Cross-region backup, data in the archive tier of the backup vault is not replicated to another region. After standard-tier data in the backup vault moves to the archive tier, the corresponding data in the destination vault is also deleted.

    • Archive-tier data is billed based on the original size of the data moved from the standard tier to the archive tier. Objects or files smaller than 64 KB are calculated as 64 KB. If your scenario involves many small files, evaluate carefully whether to move data to the archive tier. For detailed rules, see Automatic archiving.

    • Backup data must remain in the standard tier for at least 30 days before it can be moved to the archive tier. After backup data moves to the archive tier, it must remain there for at least 60 days.

    • Automatic archiving does not take effect on Tablestore backup.

    • No: backup data stays in the standard tier and does not move to the archive tier.

    • Specify Time: the valid range is 30 to 65,535 days. To balance access frequency, restore requirements, storage costs, and data lifecycle, a backup point must remain in the standard tier for at least 30 days before it is automatically archived. Because recent data is more likely to be restored, this rule helps lower long-term storage costs and reduces the high fees that can arise when data is restored from the archive tier.

      If Specify Time is set to 30 days:

      • If the Retention Period of the backup data is Permanent: the backup data moves to the archive tier after 30 days and is retained there permanently, without being deleted.

      • If the Retention Period of the backup data is 210 days: the backup data moves to the archive tier after 30 days, stays in the archive tier for another 180 days, and is then automatically deleted. The total retention period is 210 days.

    Backup Vault

    Backup Vault

    Configure the vault in which backups are stored.

    • Create Backup Vault: creates a backup vault to store backup data. A name based on the date and time is assigned by default.

    • Select Vault: selects an existing backup vault from the backup vault name drop-down list.

    To maximize data redundancy, the system automatically selects a vault type based on regional support: a zone-redundant backup vault is created by default in regions that support zone redundancy, and a locally redundant backup vault is created in other regions.

    Vault Name

    Configure this parameter only when the Backup Vault parameter is set to Create Backup Vault or Select Backup Vault. Enter or select the name of the backup vault.

    Vault Resource Group

    Configure this parameter only when the Backup Vault parameter is set to Create Backup Vault. It specifies the resource group to which the backup vault belongs.

    Resource groups are a mechanism for grouping resources within an Alibaba Cloud account. They help you manage the complexity of resource grouping and authorization within a single cloud account. For more information, see Create a resource group.

    Vault Encryption Method

    Configure this parameter only when the Backup Vault parameter is set to Create Backup Vault. It specifies the encryption method of the backup vault.

    • Cloud Backup-managed (default): uses the default encryption method of the backup service.

    • KMS: encrypts the backup vault with a custom key from Alibaba Cloud Key Management Service (KMS). You must specify the KMS Key ID parameter. You can also select the Use KMS Alias check box to use the alias of the KMS key as the identifier of the KMS key ID.

    • Important
      • After you encrypt a backup vault with a KMS key, you cannot change the KMS key.

      • To encrypt a backup vault with a KMS key, you must first create a KMS key in Key Management Service (KMS). For more information, see Create a CMK.

    Replication Policy

    Backup Vault Replication

    After backup vault replication is enabled, all existing backup data in the standard tier of the source vault and all new backup data generated from that point on are automatically synchronized to the destination vault, providing cross-region and cross-account data protection.

    Important

    When automatic archiving is enabled for the source vault, data in the archive tier of the source vault is not synchronized to the destination vault. After standard-tier data in the source vault moves to the archive tier, the corresponding data in the destination vault is also deleted.

    • Cross-region replication incurs storage and cross-region traffic fees. For billing details, see Billing methods and billable items.

    • Enabling Configure Vault Replication in a general backup policy is equivalent to enabling Backup Vault Replication for the backup vaults associated with the policy. You can configure Cross-region backup on the Storage Vaults page.

    • After Backup Vault Replication is enabled, the backup vaults of the data sources associated with the backup policy replicate automatically according to the configured rules. Both existing backup points and backup points generated later are synchronized to the destination vault.

    Note

    The cross-region retention period of general backup points is the same as the retention period of the source backup points.

    Replication Target Vault Configuration

    Select whether to use an existing destination vault or create a destination vault, based on your needs.

    • Create a destination vault: creates a vault in the current account for cross-region replication.

    • Select a destination vault: if you have created a destination vault in another account and shared it with the current account, you can replicate across accounts or across accounts and regions. If you select a destination vault in another region of the current account, you can replicate across regions.

    Destination Region

    Configure this parameter only when the Backup Vault Replication switch is turned on.

    Select the region in which the destination vault resides.

    Encryption Method of Replication Target Vault

    Configure this parameter only when the Backup Vault Replication switch is turned on and Create Replication Target Vault is selected.

    Specifies the encryption method of the destination vault, which must be the same as the encryption method of the source vault. Valid values: Cloud Backup-managed and KMS.

    Data Security

    Immutable Backup

    After Immutable backup is enabled, it cannot be disabled.

    • Once enabled, the backup vault and all backup data in it cannot be deleted before they automatically expire.

    • Once enabled, if cross-region replication is also enabled, the vault and backup points replicated to another region are locked as well.

    Backup Point Virus Detection

    After the Backup point virus detection option is enabled, the system automatically runs virus detection on backup data after each backup completes. You can view the detection results for each backup point.

    Important
    • After virus detection is enabled in a backup policy, the first backup point is fully scanned, and subsequent backup points are scanned for incremental changes.

    • Backup point virus detection is a paid feature.

    • Once a backup point virus detection task starts, it cannot be canceled.

    Turn off the Backup Point Virus Detection switch to disable backup point virus detection.

    Associate Resource Tag

    Backup policies support associating resources in bulk by tag.

    Resource Type: ECS files, OSS buckets, Alibaba Cloud NAS, CPFS file systems, and Tablestore. When you switch the resource type, the selected accounts, resource selection mode, resource tags, and completed resource matching detection results are reset. You must reconfigure them and run the detection again.

    Specify Account: specifies the account that owns the resources to back up. The default is the current account. You can also select other added accounts or All Accounts (multiple selection is supported) to associate resources from other accounts by tag and back them up. Before you select another account, you must complete the authorization configuration for cross-account backup. For more information, see Cross-account backup. All Accounts covers all accounts managed in cross-account backup, including accounts that will be added later.

    Note

    If you remove an added account from cross-account backup management and the resource tags of an existing backup policy cover the account (including coverage through All Accounts), the console lists the affected backup policies and states that their resource tags cover the account to be removed. After the account is removed, these policies no longer back up the tag-associated resources of that account, and the related backup plans are automatically suspended.

    Select Resource: associate all resources of the resource type, or select Specify Tag to associate only resources that match the specified tags. If you select all resources, the backup policy automatically backs up all resources of the specified resource type. If you select specified tags, only resources that match the tags are automatically backed up.

    Resource Tag: a resource is matched only when all of these tags are present. For example, after you add tag A and tag B, only resources that carry both tag A and tag B are associated and backed up. Click Associate Tags to add multiple tags.

    How you enter tag keys and tag values depends on the specified account. When the specified account includes only the current account, you can enter tag keys and tag values manually or select them from a drop-down list, which lists the tag keys and tag values of the current account. When the specified account includes other accounts or All Accounts is selected, you can only enter tag keys and tag values manually. The matching rule for tag values (equals, does not equal, any value) is always selected from a drop-down list and is not affected by the specified account. When Any Value is selected, no tag value is required.

    Resource tags must correspond to the resource type:

    • Resource type ECS files: specify ECS instance tags

    • Resource type OSS bucket: specify OSS bucket tags

    • Resource type Alibaba Cloud NAS: specify NAS file system tags

    • Resource type CPFS file system: specify CPFS file system tags

    • Resource type Tablestore: specify Tablestore instance tags

    Billing notes: Backup plans created for OSS, NAS, and Tablestore resources by tag are billed, and they do not qualify for the 30-day free backup trial of the corresponding data sources. To use the 30-day free trial, create a free backup plan for an individual resource (such as an OSS bucket) in the resource list on the left side of the console.

    Note
    • You can add up to 30 resource tags.

    • When ECS instances are associated with a backup policy by tag and the specified resource type is ECS files, Cloud Backup automatically deploys the ECS file backup (Standard) client when the next backup task starts. Conversely, when the tags of an ECS instance no longer match any backup policy and all related backup tasks have expired, Cloud Backup automatically uninstalls the ECS file backup (Standard) client.

    • Each time a backup policy runs, Cloud Backup performs the following tag matching checks:

      1. Automatically associate newly matched resources: if Cloud Backup finds a data source that matches the policy tags but is not bound to the current backup policy, the backup policy automatically associates the resource. The resource is then periodically backed up starting from the next backup point.

      2. Automatically adjust associated resources: for data sources already bound to the backup policy, the system checks whether they still meet the tag requirements of the policy. If a data source no longer matches the current policy settings, Cloud Backup automatically suspends its backup tasks and automatically disassociates it from the policy at the end of the backup cycle.

    • If you modify a backup plan that was created by tag matching, the data source becomes manually associated.

    Resource matching detection: after the configuration is complete, click Detect Now to detect which resources will be automatically backed up by this policy. You must complete the detection and confirm the matched resources before you can save the backup policy.

    The detection results include the following three cases:

    • Matched resources: the message "N resources are detected and will be automatically backed up by this policy." is displayed. Click View Details to view the list of matched resources. The details include the cross-account type, Alibaba Cloud account ID, resource name, and resource ID, and the current table data can be downloaded. If more than 100 resources are matched, the message "A total of N resources are matched, and only the first 100 are displayed. To view the complete resource list, log on to the product console of the corresponding account." is displayed.

    • No matched resources: the message "No resources are detected. You can still create the backup policy, or adjust the tags and try again." is displayed.

    • Detection failed: the message "Detection failed. Adjust the tags and try again." is displayed.

    If any matched resources have already been manually associated with this backup policy, the detection results also display the message "N resources are manually associated with this backup policy and will no longer be associated by tag." You can click View Details to view the details, which also include the cross-account type, Alibaba Cloud account ID, resource name, and resource ID, and support downloading the current table data.

    To add resources of multiple resource types, click Add Resource.

    ECS instance backup policy parameters

    Important

    Choose the policy type that fits your business requirements, and review the parameter descriptions to make sure the configuration meets your expectations.

    Parameter

    Description

    Policy Type

    Select the backup policy type.

    Applies only to ECS instance backup. Backup data uses snapshot capacity, and no backup vault is used.

    Policy Name

    Enter a custom name for the backup policy.

    The backup policy name can be up to 64 characters in length and must not begin or end with a space.

    Schedule

    Backup Frequency

    Set how often backups run.

    Note

    If a backup task starts while the previous one is still running, the current task is skipped and starts at the next scheduled time.

    • Hourly: runs a backup at fixed hourly intervals.

    • Daily: runs a backup at fixed daily intervals.

    • Weekly: runs a backup on the specified days of the week.

    • Monthly: runs a backup in the specified months.

    First Execution Time

    Specify when the policy first runs.

    Time Interval

    Specify the interval between backups.

    Lifecycle

    Retention Period

    Set how long backup data is retained.

    Important

    Full-machine backup does not support setting the retention period to forever.

    Specify Time: the total retention period for backup data, in days. The maximum value cannot exceed 999 years after conversion. For example, a value of 210 days means backup data is retained for 210 days in total and deleted upon expiration.

    When Days to Transfer to Archive Tier is configured, data in the archive tier is retained for at least 60 days. Therefore, set the total retention period to no less than the sum of the automatic archiving trigger (in days) and the minimum archive-tier retention period (60 days).

    For example, if data is automatically archived 15 days after it is backed up, set the total retention period to at least 15 + 60 = 75 days.

    Special Retention Period

    In addition to standard retention, Cloud Backup lets you set a longer retention period for the first available backup version within a specified cycle (weekly, monthly, or yearly) to meet data security requirements. This serves as the special retention policy of the backup policy. A backup policy can apply weekly, monthly, and yearly special retention rules at the same time. For more information, see Special retention periods for tiered backups.

    Important

    Special retention periods are constrained by the retention period. When you configure a special retention period, follow the system recommendations. The following rules generally apply:

    • The special retention period must be longer than the retention period.

    • The special retention period cannot exceed 999 years after conversion from weeks, months, or years.

    Keep At Least One Backup Version

    Enable the Keep At Least One Backup Version option. With this option enabled, the latest backup version generated by the backup plan is not deleted when its retention period expires or when it is deleted by mistake. This prevents the situation where no backup version is available for restore because the backup plan is misconfigured.

    Important
    • This feature takes effect only after a data source is associated with the backup policy.

    • Backup points replicated across regions by full-machine backup policies are not affected by the retain-at-least-one-version rule of the local policy.

    • The latest backup is not automatically moved to the archive tier.

    Automatic Archiving

    Days to Transfer to Archive Tier

    Specifies the number of days after which backup data moves to the archive tier. By default, backup data is stored in the standard tier. For backup data that must be kept long term, use this feature to move backup points from the standard tier to the archive tier and reduce data protection costs.

    Important
    • Applies only to ECS full-machine backup points created after automatic archiving is configured or modified. Backup points created before the configuration cannot be archived.

    • Archive-tier data is billed based on Archive snapshots rates, and the fees are charged by the ECS service. Before an ECS full-machine backup point enters the archive tier, snapshots that have not been archived are billed as standard snapshot storage, and successfully archived snapshots are billed based on Archive snapshots rates.

    • A backup point must remain in the standard tier for at least 14 days before it can be moved to the archive tier, and it must remain in the archive tier for at least 60 days after the move. If you manually delete a backup point within the 60 days, you must pay the fees for the remaining time.

    • No: backup data stays in the standard tier and does not move to the archive tier.

    • Specify Time: the valid range is 14 to 65,535 days. To balance access frequency, restore requirements, storage costs, and data lifecycle, a backup point must remain in the standard tier for at least 14 days before it is automatically archived. Because recent data is more likely to be restored, this rule helps lower long-term storage costs and reduces the high fees that can arise when data is restored from the archive tier.

      If Specify Time is set to 30 days and the Retention Period of the backup data is 210 days, the backup data moves to the archive tier after 30 days, stays in the archive tier for another 180 days, and is then automatically deleted. The total retention period is 210 days.

    Replication Policy

    Replication to Other Region

    After Replication to Other Region is enabled, backups are automatically replicated to the destination region as soon as they are created, providing cross-region protection.

    • Depending on the backup source type, cross-region replication incurs storage or cross-region traffic fees. For billing details, see Billing methods and billable items.

    • Cloud Backup provides the following cross-region backup replication technology:

      Backups are replicated across regions by using the snapshot cross-region replication technology, which applies only to Back up an ECS instance.

    Important
    • After Replication to Other Region is enabled, existing backups are not replicated. The feature applies only to backup points created after it is enabled.

    • After cross-region replication is disabled, backup points already replicated to the destination region are not immediately deleted. They are automatically cleaned up when their retention period expires.

    Destination Region

    Configure this parameter only when Replication to Other Region is enabled. Specify the destination region to which backup data is replicated.

    Remote Retention Period

    Configure this parameter when Replication to Other Region is enabled. Set how long backup data is retained in the destination region.

    Note

    Full-machine backup does not support setting the retention period to forever.

    Specify Time: the total retention period of cross-region backup data, in days. The default value is 7 days, and the maximum value cannot exceed 999 years after conversion. Backup data is automatically deleted when the retention period expires.

    When Archive after days is configured, data in the archive tier is retained for at least 60 days. Therefore, set the total retention period of cross-region data to no less than the sum of the automatic archiving trigger (in days) and the minimum archive-tier retention period (60 days).

    For example, if data is automatically archived 15 days after it is backed up, set the total retention period to at least 15 + 60 = 75 days.

    Archive after days

    Configure this parameter when Replication to Other Region is enabled.

    Cross-region backup data is stored in the standard tier by default. By specifying the number of days after which cross-region backup data moves to the archive tier, you can move cross-region backup data that must be kept long term from the standard tier to the archive tier and reduce data protection costs.

    Important
    • Archive-tier data is billed based on Archive snapshots rates, and the fees are charged by the ECS service. Before an ECS full-machine backup point enters the archive tier, snapshots that have not been archived are billed as standard snapshot storage, and successfully archived snapshots are billed based on Archive snapshots rates.

    • A backup point must remain in the standard tier for at least 14 days before it can be moved to the archive tier, and it must remain in the archive tier for at least 60 days after the move. If you manually delete a backup point within the 60 days, you must pay the fees for the remaining time.

    • If Archive after days is greater than or equal to Remote Retention Period, no backups are moved to the archive tier.

    • No: cross-region backup data stays in the standard tier and does not move to the archive tier.

    • Specify Time: the valid range is 14 to 65,535 days. To balance access frequency, restore requirements, storage costs, and data lifecycle, a backup point must remain in the standard tier for at least 14 days before it is automatically archived. Because recent data is more likely to be restored, this rule helps lower long-term storage costs and reduces the high fees that can arise when data is restored from the archive tier.

      If Specify Time is set to 30 days and the Remote Retention Period of the backup data is 210 days, the cross-region backup data moves to the archive tier after 30 days, stays in the archive tier for another 180 days, and is then automatically deleted. The total retention period is 210 days.

    Data Security

    Immutable Backup

    After the feature is enabled, Immutable backup cannot be disabled.

    • Once enabled, full-machine backup points cannot be deleted before they automatically expire.

    • Once enabled, only full-machine backup points created in the next backup run are locked. Existing full-machine backup points are not locked.

    • Once enabled, if cross-region replication is also enabled, backup points replicated to another region are locked as well.

    • Once enabled, the normal use of the related cloud disks and snapshots is not affected, for example, creating cloud disks and sharing snapshots.

    Associate Resource Tag

    Backup policies support associating resources in bulk by tag.

    Resource Type: ECS instances.

    Specify Account: specifies the account that owns the ECS instances to back up. The default is the current account. You can also select an added account to associate and back up ECS instances from other accounts by tag. Before you select another account, you must complete the authorization configuration for cross-account backup. For more information, see Cross-account backup. All Accounts is an exclusive option. When it is selected, other selected accounts are cleared. This option covers all accounts managed in cross-account backup, including accounts that will be added later.

    Select Resource: associate all ECS instances, or select Specify Tag to associate only ECS instances that match the specified tags. If you select all resources, the backup policy automatically backs up all ECS instances. If you select specified tags, only ECS instances that match the tags are automatically backed up.

    Resource Tag: a resource is matched only when all of these tags are present. For example, after you add tag A and tag B, only ECS instances that carry both tag A and tag B are associated and backed up. Tags must be ECS instance tags. Click Associate Tags to add multiple tags.

    Note
    • You can add up to 30 resource tags.

    • Each time a backup policy runs, Cloud Backup performs the following tag matching checks:

      1. Automatically associate newly matched resources: if Cloud Backup finds a data source that matches the policy tags but is not bound to the current backup policy, the backup policy automatically associates the resource. The resource is then periodically backed up starting from the next backup point.

      2. Automatically adjust associated resources: for data sources already bound to the backup policy, the system checks whether they still meet the tag requirements of the policy. If a data source no longer matches the current policy settings, Cloud Backup automatically suspends its backup tasks and automatically disassociates it from the policy at the end of the backup cycle.

    • If you modify a backup plan that was created by tag matching, the data source becomes manually associated.

    Resource matching detection: after the configuration is complete, click Detect Now to detect which resources will be automatically backed up by this policy. You must complete the detection and confirm the matched resources before you can save the backup policy.

    The detection results include the following three cases:

    • Matched resources: the message "N resources are detected and will be automatically backed up by this policy." is displayed. Click View Details to view the list of matched resources. The details include the cross-account type, Alibaba Cloud account ID, resource name, and resource ID, and the current table data can be downloaded. If more than 100 resources are matched, the message "A total of N resources are matched, and only the first 100 are displayed. To view the complete resource list, log on to the product console of the corresponding account." is displayed.

    • No matched resources: the message "No resources are detected. You can still create the backup policy, or adjust the tags and try again." is displayed.

    • Detection failed: the message "Detection failed. Adjust the tags and try again." is displayed.

    To add resources of multiple resource types, click Add Resource.

    After the backup policy is created, you can view it in the policy list of the Policy Center.

    • When the policy type is General Backup Policy, the created backup policy is as follows.

      • Execution time: starts at 09:00:00 with a 1-day backup interval

      • Retention period: 2 years

      • Special retention period: Do not use

      • Retain at least one backup: Enabled

      • Automatic archiving: Do not use

      • Cross-region backup replication: Do not use

      • Backup point virus detection: Enabled (billed)

      • Associated resources: Not configured

    • When the policy type is ECS Instance Backup Policy, the created backup policy is as follows.

      The backup policy list shows one full-machine backup policy record, and the parameter values in the backup policy details are as follows:

      • Execution time: starts at 03:00:00 with a 1-day backup interval

      • Retention period: 1 week

      • Special retention period: Do not use

      • Retain at least one backup: Enabled

      • Cross-region backup replication: Do not use

      • Backup Lock: Enabled

      • Backup vault: No backup vault is used.

      • Number of associated resources: 1

      You can manage the policy by using the links in the Actions column, such as Associate Resources and Edit Policy.

Create a backup policy (new version)

The new version of backup policy creation provides two methods: templates and custom configuration. If you select a template, recommended settings are applied and you skip complex parameter configuration to go directly to resource association. If you select custom configuration, you configure backup parameters individually. Advanced configurations such as Special Retention Period and Immutable Backup are collapsed by default and can be configured as needed.

Note

The new version of backup policy creation is supported only in the China (Hohhot) and China (Ulanqab) regions. For other regions, see Create a backup policy.

  1. Log on to the Cloud Backup console.

  2. In the navigation pane on the left, choose Backup > Policy Center.

  3. In the top navigation bar, select a region.

  4. On the Policy Center page, click Create Backup Policy.

  5. On the template selection page, select a template under General Backup Policy or ECS Instance Backup Policy based on your business requirements.

    • Daily Backup or Weekly Backup: applies recommended settings. After you select a template, you go directly to the resource association step without configuring parameters.

    • Custom: goes to the parameter settings step, where you configure the backup frequency, retention period, and enterprise-grade capabilities.

    The recommended settings of each template are as follows. You can modify them after creation:

    Template

    General backup policy

    ECS instance backup policy

    Daily backup

    Once a day, retained for 30 days

    Once a day, retained for 7 days

    Weekly backup

    Once a week on Monday, retained for 1 year

    Once a week on Monday, retained for 30 days

    Custom

    Configure the backup frequency and retention period, and enable enterprise-grade capabilities as needed.

    The daily backup, weekly backup, and custom templates all enable Keep At Least One Backup Version by default, ensuring that the latest backup version is always available for restore.

  6. If you select the Custom template, configure the policy name, backup frequency, first execution time, backup interval, retention period, and backup vault. Then click Next.

    The main parameters and enterprise-grade capabilities are described below. View the tab for the policy type you selected:

    General backup policy

    • Policy Name: the custom backup policy name, up to 64 characters.

    • Backup Frequency: hourly, daily, weekly, or monthly. Combine this with the first execution time and backup interval to set the backup frequency.

    • Retention Period: 7 days, 30 days, 1 year, 2 years, permanent, or custom.

    • Backup Vault: a new backup vault is created by default. Click Modify to select an existing backup vault or adjust settings such as the encryption method.

    Expand Advanced Configuration to enable the following enterprise-grade capabilities as needed:

    Enterprise-grade capability

    Description

    Keep At Least One Backup Version

    This capability is enabled by default for the Daily Backup, Weekly Backup, and Custom templates. The latest backup version is always retained to prevent situations where no backup version is available for restore due to retention expiration or accidental operations.

    Special Retention Period

    Retains the first available backup in each specified cycle (weekly, monthly, or yearly) for a longer period.

    Days to Transfer to Archive Tier

    Automatic archiving. Backup points are moved from the standard tier to the archive tier to reduce storage costs for long-term retention. Backup data must be retained in the standard tier for at least 30 days before it can be transferred to the archive tier.

    Immutable Backup

    After this feature is enabled, the backup vault and all its backup data cannot be deleted before automatic expiration. This operation is irreversible. Enable it with caution. If Backup Vault Replication is also enabled, the backup vaults and backup points replicated to other regions are also locked.

    Backup Vault Replication

    Synchronizes standard-tier data from the source backup vault to the replication destination backup vault, providing cross-region or cross-account data protection.

    Backup Point Virus Detection

    Scans backup points for viruses to prevent reinfection of the production environment when virus-infected data is restored.

    Incremental Backup Interval

    This setting is required only for Tablestore data sources. For other data sources, no configuration is needed and Cloud Backup automatically performs full or incremental backups.

    ECS instance backup policy

    • Policy Name: the custom backup policy name, up to 64 characters.

    • Backup Frequency: hourly, daily, weekly, or monthly. Combine this with the first execution time and backup interval to set the backup frequency.

    • Retention Period: 7 days, 30 days, 1 year, 2 years, or custom. Permanent retention is not supported.

    Note

    ECS instance backup data is stored as cloud disk snapshots. No backup vault configuration is required.

    Expand Advanced Configuration to enable the following enterprise-grade capabilities as needed:

    Enterprise-grade capability

    Description

    Keep At Least One Backup Version

    Enabled by default. The latest backup version is always retained to prevent situations where no backup version is available for restore due to retention expiration or accidental operations. Backup points replicated to other regions by an ECS Instance Backup Policy are not affected by the local policy's "Keep At Least One Backup Version" setting.

    Special Retention Period

    Retains the first available backup in each specified cycle (weekly, monthly, or yearly) for a longer period.

    Days to Transfer to Archive Tier

    Automatic archiving. Backup points are moved from the standard tier to the archive tier to reduce storage costs for long-term retention. Backup points must be retained in the standard tier for at least 14 days before they can be transferred to the archive tier.

    Immutable Backup

    After this feature is enabled, it cannot be disabled. ECS instance backup points cannot be deleted before automatic expiration. The lock applies only to backup points created in the next backup cycle after the feature is enabled. Existing backup points are not locked. If Replication to Other Region is also enabled, backup points replicated to other regions are also locked. Enabling this feature does not affect the normal use of the corresponding cloud disks and snapshots.

    Replication to Other Region

    Uses snapshot cross-region replication to replicate backup points created after the feature is enabled to the destination region, providing cross-region data protection. This capability applies only to ECS instance backup.

  7. In the Associate Resources (Optional) step, select Associate by Resource Tag or Associate by Resource ID to associate the resources that you want to back up. You can also skip this step and associate resources in the Policy Center after the policy is created. Then click Next.

    Resource association is optional. If you select a template, you go directly to this step after you select the template.

  8. In the Confirm step, review the configuration summary. You can click Modify in each section to go back and adjust the settings. After you verify that the configuration is correct, click OK.

Associate data sources with a backup policy

After you create a backup policy, you can associate resources for automatic backup in one of the following ways:

  • Associate a backup policy when you create a backup plan for a data source.

  • In the backup policy list, click Associate Resource in the Actions column of the target policy to Batch associate resources by resource ID.

  • In the backup policy list, click Edit Policy in the Actions column of the target policy, and specify resource tags in the Associate Resource Tag panel to automatically associate matched resources. For more information, see Tag-based automatic resource association and backup.

Click image to the left of a policy to view the associated data sources.

The expanded view shows a list of the associated data sources, including the data source name/ID, resource type, backup objects, backup options, association source, and actions. Association source indicates whether a resource was added manually or automatically associated by tag.

Batch associate resources by resource ID

After you create a backup policy, you can also click Associate Resource in the Actions column of the target backup policy to associate more resources in batches.

In the Add Associated Resources panel, you must configure Specify Account for each resource block to specify the account that owns the resources to associate. The default is the current account. You can also select one added account (only one account can be selected at a time). All Accounts cannot be selected here.

When the resource type is On-premises File or On-premises NAS, only resources within the current account can be backed up. Cross-account backup is not supported.

For general backup policies:

  • When the resource type is ECS File, click the ECS Instance drop-down list and select multiple ECS instances.

    The backup policy automatically backs up the specified ECS instances. By default, all files except system directories are backed up; the excluded system directories are those displayed in the console.

  • When the resource type is Alibaba Cloud OSS, click the OSS Bucket drop-down list and select multiple OSS buckets.

    The backup policy automatically backs up the specified OSS buckets (Standard and IA). By default, the entire bucket is backed up.

  • When the resource type is Alibaba Cloud NAS, click the NAS File System drop-down list and select multiple NAS file systems.

    The backup policy automatically backs up the specified general-purpose NAS file systems. By default, the entire file system is backed up.

  • When the resource type is CPFS for AI Computing, click the CPFS File System drop-down list and select multiple CPFS file systems.

    The specified CPFS file systems are automatically backed up by this policy. By default, the entire file system is backed up.

  • When the resource type is Tablestore, click the Tablestore Instance drop-down list and select multiple Tablestore instances.

    The backup policy automatically backs up the specified Tablestore instances. By default, the entire instance is backed up.

  • When the resource type is On-premises File, click the On-premises File Data Source drop-down list and select multiple on-premises file data sources.

    The specified backup clients are automatically backed up by this policy. By default, all files except system directories are backed up.

  • When the resource type is On-premises NAS, click the On-premises NAS Data Source drop-down list and select multiple on-premises NAS data sources.

    The specified on-premises NAS data sources are automatically backed up by this policy. By default, the entire file system is backed up.

For full-machine backup policies:

  • When the resource type is ECS Instance, click the ECS Instance drop-down list and select multiple ECS instances.

    The backup policy automatically backs up the specified ECS instances. By default, all cloud disks are backed up.

To add resources of multiple resource types, click Associate Resource.

Modify a backup policy

Find the target policy in the policy list and click Edit Policy in the Actions column on the right to change the policy settings.

Important
  • Modifying a backup policy affects all data sources bound to the policy. The modified settings take effect the next time a backup task runs.

  • If you modify the resource matching settings, such as the specified account, resource selection, or associated tags, you must click Detect Now again and confirm the matched resources before you can save the policy.

Run a backup policy immediately

  • To run a backup task immediately for all data sources bound to a backup policy:

    Find the target policy in the policy list and choose ┇ > Execute Immediately in the Actions column on the right. After the task succeeds, you can view the execution progress on the Backup Jobs page of each data source.

  • To run a backup task immediately for a target data source:

    Click image to expand the backup policy details and switch to the target data source in the left-side menu. Then choose ┇ > Execute Immediately in the Actions column of the target data source.

Disassociate a backup policy

After you create a backup policy, you can disassociate the backup policy from a data source in one of the following ways:

  • In the backup policy list, click the image expand icon to the left of the target policy to expand the associated data source list. Then click Disassociate in the Actions column of the target data source.

  • Switch the left-side menu to the corresponding data source, click the Backup Plans tab, and find the target backup plan. Then choose ┇ > Delete Plan in the Actions column on the right.

Warning

After a backup policy is disassociated from a data source, the backup plans of the data source no longer run and the data source is no longer protected. Backups that have already been generated are not affected. Proceed with caution.

Delete a backup policy

After you create a backup policy, you can find the target policy in the policy list and choose ┇ > Delete in the Actions column on the right to delete the backup policy. After a backup policy is deleted, the backup tasks of the data sources associated with the policy no longer run, but the backed-up data is retained.

Warning
  • You cannot delete a backup policy that is associated with data sources. To delete the backup policy, disassociate it from the data sources first.

  • After a backup policy is deleted, all backup tasks that use the policy no longer run, and the corresponding data sources are no longer protected. Proceed with caution.

Unbind resource tags

After you create a backup policy, you can find the target policy in the policy list and click Edit Policy in the Actions column on the right. Then click image on a resource tag to unbind it from the backup policy. After a resource tag is unbound, the data sources associated with the tag are automatically removed from the backup policy. The change takes effect the next time the backup policy runs.