Back up data

更新时间:
复制 MD 格式

To prevent business disruptions caused by accidental data deletion or malicious changes, you can use the Tablestore data backup feature to back up important data in your instances. This topic describes how to perform regular full or incremental backups of Tablestore data for paid services.

Note
  • Cloud Backup provides a 30-day free trial for Tablestore data backup. This free trial has some limits. You can switch to a paid plan as needed. For more information about the limits and how to switch to a paid plan, see 30-day Free Trial.

  • For information about creating a backup plan during the free trial, see Free trial of Tablestore data backup.

Notes

  • Backup and recovery are supported only for data tables and search indexes in Tablestore instances. Secondary indexes and time series tables cannot be backed up.

  • Data backup and recovery are not supported for VCU (formerly Reserved Mode) instances that are disabled. Existing backups remain in the Cloud Backup vault for the corresponding region.

  • When you back up encrypted Tablestore tables, Cloud Backup does not back up the encryption settings. The tables in the backup vault are not encrypted.

  • Back up data during Tablestore off-peak hours. If you must back up data during peak hours, use the traffic shaping feature to limit the maximum traffic for the backup. This prevents the backup process from affecting your business performance.

  • Data is compressed during backup. The compression ratio depends on the data characteristics.

  • The automatic archiving feature in backup policies does not apply to Tablestore.

  • For each backup job, Cloud Backup automatically creates a corresponding tunnel in Tablestore.

Procedure

Create a backup plan

  1. Go to the Create Backup Plan page.

    1. On the Data Backup page of the Tablestore console, select the region where the resource that you want to back up resides.

      Cloud Backup reads the instances in the corresponding Tablestore region and loads them by default.

      Note

      The first time you use the data backup feature, Cloud Backup automatically creates the service-linked role AliyunServiceRoleForHbrOtsBackup to access the Tablestore instance resources in your account. Follow the instructions in the wizard to grant authorization to Cloud Backup. For more information, see Cloud Backup service-linked role.

    2. In the Actions column of the target instance, click Backup.

  2. Select the resources to back up.

    1. In the Create Backup Plan panel, in the Backup Content step, select the tables that you want to back up.

      You can select multiple tables at once.

    2. Click Next.

      image

  3. Configure backup options.

    1. In the Create Backup Plan panel, in the Backup Options step, select a backup policy.

      If you have not created a backup policy, click Create Policy. In the Create Policy dialog box, configure the backup policy parameters as described in the following table, and then click OK.

      Note

      For more information about backup policy parameters, see Policy Center.

      Category

      Configuration Item

      Description

      Basic Settings

      Policy Name

      The name of the backup policy. The system generates a name automatically, but you can customize it.

      Execution Plan

      The execution plan for the backup policy. You can specify the backup cycle, the start time of the first backup job, the backup interval, and whether to use incremental backup.

      Lifecycle

      The lifecycle of the backup data. You can specify a retention period, a special retention period, and whether to retain at least one backup.

      Backup Data Management

      Backup Vault

      The backup vault where data is saved. You can create a new backup vault or select an existing one.

      Replication Policy

      Specifies whether to enable cross-region replication for backups. This feature is disabled by default. To perform a cross-region backup of Tablestore data, turn on the Cross-region Replication switch and select a destination region.

      Note

      You can also implement cross-region backup by creating a mirror vault for the backup vault that stores Tablestore data. For more information, see Cross-region backup.

      Data Security

      Security features for backup data. Backup locking and virus detection for backup points are supported. These features are disabled by default. Configure them as needed.

      image

    2. Set traffic shaping.

      By default, traffic is not shaped during data backup. To back up data during peak hours, turn on the Enable Traffic Shaping switch and set the time range and maximum traffic.

  4. Click OK.

    The backup plan is enabled by default. Cloud Backup runs Tablestore backup jobs according to the specified backup policy.

    When a backup runs, Cloud Backup generates a backup job for the operation. You can view the execution status of backup jobs on the Backup Jobs tab. The backup is complete when the value in the Status column changes to Completed. After an incremental backup is complete, the status is Completed and the progress is 100%.

    image

Manually run a backup plan

You can view the created backup plans on the Backup Plans tab. If you do not want to wait for the scheduled time, you can manually run a backup.

  • Full backup: In the Actions column of the backup plan, choose More > Run Full Backup Now.

  • Incremental backup: If the backup policy includes an incremental backup interval, you can choose More > Run Incremental Backup Now in the Actions column of the backup plan.

image

References

After you back up Tablestore data, you can restore it when needed. For more information, see Restore data.

Appendix: Manage backup plans

After you create a backup plan, you can perform the following operations as needed.

Operation

Description

Disable or enable a backup plan

A backup plan is enabled by default. If you no longer need to run a backup plan, you can disable it.

  1. Click the image.png switch in the Plan Status column of the backup plan.

  2. In the dialog box that appears, click OK.

To re-enable a backup plan, click the image.png switch in its Plan Status column.

Edit a backup plan

You can modify the settings of a backup plan, such as the tables to back up, the backup policy, and whether to use traffic shaping.

  1. In the Actions column of the backup plan, click Edit.

  2. In the Edit Plan panel, modify the settings as instructed by the wizard.

  3. Click OK.

Manage backup jobs

After a backup runs, you can go to the Backup Jobs tab for the instance to view backup job information. This information includes the backup content, the amount of data read from the data source, the amount of data backed up, and the amount of data written to the backup vault.

For a running backup job, if you want to cancel it, click Cancel in the Actions column of the backup job, and then click OK.

Configure alerts for a backup plan

You can configure alerts for a backup plan to monitor its execution status. This helps you promptly detect and handle exceptions. For more information, see Alerts for backup exceptions.

Delete a backup plan

You can delete backup plans that you no longer need.

Important
  • After a backup plan is deleted, it cannot be restored.

  • Deleting a backup plan does not delete previous backups. Cloud Backup retains the backup data according to the lifecycle settings in the backup policy.

  1. In the Actions column of the backup plan, choose More > Delete Plan.

  2. In the dialog box that appears, click OK.