To prevent business exceptions caused by accidental deletion or malicious tampering of important data, we recommend that you use the data backup feature of Tablestore to back up important data in your Tablestore instances. This topic describes how to regularly back up full or incremental Tablestore data by using the paid data backup feature of Tablestore.
Cloud Backup provides a 30-day free trial for the data backup feature of Tablestore. During the free trial period, limits are imposed when you use the feature. You can switch to paid usage during the free trial based on your business requirements. For more information, see Usage notes of 30-day free trial.
For information about how to create a backup plan during the free trial period, see Back up data in Tablestore.
Usage notes
You can back up and restore only data tables and search indexes in Tablestore instances. You cannot back up secondary indexes or time series tables.
Cloud Backup
Cloud Backup cannot back up the encryption settings of encrypted tables in Tablestore. After encrypted tables in Tablestore are backed up to a backup vault, the tables are not encrypted in the backup vault.
We recommend that you back up Tablestore data during off-peak hours. If you want to back up data during peak hours, we recommend that you use the throttling feature to limit the maximum traffic that can be consumed by the data backup feature and prevent business interruptions.
Data is compressed during backup. The compression ratio varies based on the data features.
The automatic archiving feature in the backup policy does not apply to Tablestore backup.
Cloud Backup automatically creates a tunnel in Tablestore for each backup job to back up data.
Procedure
Create a backup plan
Go to the Create Backup Plan panel.
On the Data Backup page in the Tablestore console, select the region in which the resources that you want to back up reside.
Cloud Backup automatically reads and loads the Tablestore instances in the region.
NoteThe first time you use the data backup feature, Cloud Backup automatically creates a service-linked role named
AliyunServiceRoleForHbrOtsBackup
to obtain Tablestore instances within your Alibaba Cloud account. Follow the on-screen instructions to authorize Cloud Backup to access your Tablestore resources. For more information, see Service-linked roles for Cloud Backup.Find the instance that you want to manage and click Back Up in the Actions column.
Select the resources that you want to back up.
In the Backup Content step of the Create Backup Plan panel, select the tables that you want to back up.
You can select multiple tables to back up the tables at the same time.
Click Next.
Configure the backup settings.
In the Backup Config step of the Create Backup Plan panel, select a backup policy.
If you did not create a backup policy, click Create Backup Policy. In the Create Backup Policy dialog box, configure the parameters and click OK.
NoteFor more information about the parameters in a backup policy, see Manage backup policies.
Section
Parameter
Description
Basic Settings
Policy Name
The name of the backup policy. The system automatically generates a name for a backup policy. You can also specify a custom name.
Schedule
The execution plan of the backup policy. You can specify the backup frequency, first execution time, backup interval, and whether to use incremental backup.
Lifecycle
The lifecycle of the backup data. You can specify custom and special retention periods for the backup data. You can also specify whether to retain at least one backup version.
Backup Data Management
Backup Vault
The backup vault in which data is stored. You can create a backup vault or select an existing backup vault.
Replication Policy
Specifies whether to enable cross-region replication for the backup data. By default, cross-region replication for backup data is disabled. To back up Tablestore data across regions, turn on Replication to Other Region and select a destination region.
NoteYou can also create a remote mirror vault for the backup vault that stores Tablestore data to automatically replicate the data for geo-redundancy. For more information, see Cross-region backup.
Data Security
The security features for the backup data, including immutable backup and backup point virus detection. By default, the features are disabled. You can enable or disable the features based on your business requirements.
Configure throttling.
By default, throttling is disabled for data backup. If you want to back up data during peak hours, turn on Enable Bandwidth Throttling and specify the throttling period and maximum traffic.
Click OK.
By default, a backup plan is enabled. Cloud Backup backs up Tablestore data based on the specified backup policy.
Cloud Backup generates a backup job for each backup operation. On the Backup Jobs tab, you can view the status of a backup job. If the value in the Status column of a backup job changes to Completed, the backup job is complete. After an incremental backup job is complete, the progress of the backup job is displayed as 100% in the Status column.
Manually execute a backup plan
On the Backup Plans tab, you can view the backup plan. If the specified backup start time does not arrive, you can manually perform a backup.
Full backup: In the Actions column of the backup plan, choose More > Perform Full Backup Now.
Incremental backup: If an incremental backup interval is specified for Tablestore data in the backup policy, choose More > Perform Incremental Backup Now in the Actions column of the backup plan.
References
After you back up Tablestore data, you can restore the data. For more information, see Restore data.
Appendix: Manage backup plans
After you create a backup plan, you can perform various operations based on your business requirements. The following table describes the operations.
Operation | Description |
Disable or enable a backup plan | By default, a backup plan is enabled. If you no longer want to run a backup plan, disable the backup plan.
If you want to re-enable a disabled backup plan, click the |
Modify a backup plan | You can modify the configurations of a backup plan, such as the tables that you want to back up, the backup policy, and whether to enable throttling.
|
Run a backup job | After you run a backup job, you can view information about the backup job on the Backup Jobs tab of the instance, including table names, and the size of data and number of rows that are read, backed up, and stored in the backup vault. To cancel an ongoing backup job, click Cancel in the Actions column of the backup job and then click Ok in the message that appears. |
Specify an alert notification method for a backup plan | You can specify an alert notification method for a backup plan to monitor the status of the backup plan. This helps you detect and handle exceptions at the earliest opportunity. For more information, see Configure alerting notification for a backup plan. |
Delete a backup plan | You can delete a backup plan that you no longer require. Important
|