Data Disaster Recovery supports logical backup and restoration for Tair (Redis OSS-compatible) databases, giving you granular control over what to back up, where to store it, and how far back you can restore.
Features
| Feature | Description |
|---|---|
Backup to files | Uses logical backup technology to back up data to JSON files. |
| Geo-redundancy | Supports backing up Redis instances to OSS in the destination region, and restoring to Redis instances in the destination, source, or other regions. |
| Long-term archiving | Supports a retention period of up to 10 years. Backup sets are automatically transferred to archive storage. |
| Fine-grained backup | Backs up a single database, multiple databases, or an entire Tair (Redis OSS-compatible) instance. |
Backup throttling | Effectively reduces the impact of backup on database performance. |
Single-database recovery | Supports single-database recovery without restoring the entire Redis instance, reducing recovery time. |
Prerequisites
Before you begin, make sure you have:
-
A Tair (Redis OSS-compatible) standard master-replica instance running Redis 4.0
-
A backup schedule. For instructions, see Create a backup schedule. When purchasing, set Data Source Type to Redis and Backup Method to Logical Backup
Create a backup schedule
For more information, see Create a backup schedule。
When purchasing, select the data source type as Redis, and select the backup method as Logical Backup。
For information about Database Backup Service (DBS)the specific granularity when backing up and restoring Redis databases, see Supported database types and features。
Configure a backup schedule
-
Log on to the Data Management (DMS) console V5.0.
-
In the top navigation bar, choose Security and Specifications (DBS) > Disaster Recovery for Data (DBS) > Backup Plan.
In simple mode, move the pointer over the
icon in the upper-left corner and choose All Features > Security and Specifications (DBS) > Disaster Recovery for Data (DBS) > Backup Plan. -
On the Backup Schedules page, find your backup schedule and click Configure Backup Schedule in the Actions column.

-
In the Configure Backup Source and Destination step, configure the following parameters and click Next.
Section Parameter Description N/A Schedule name A name for the backup schedule. Data Disaster Recovery auto-generates a name. Use a descriptive name that makes the schedule easy to identify. Names do not need to be unique. Backup source information Backup mode The backup method. Defaults to the method selected at purchase. This example uses Logical Backup. Database location Set to ApsaraDB for Redis. Instance region The region where the source instance resides. Displayed only when Database location is set to ECS-Hosted Database, ApsaraDB for Redis, or No public network IP: Port's self-built database (accessed through the database gateway). Database type Defaults to Redis. Redis instance ID The ID of the source Tair (Redis OSS-compatible) instance. Displayed only when Database location is set to ApsaraDB for Redis. Password The password for the database account. Format depends on the account type:
- Default account: Enter the password only. The username isdefault, or use the instance ID (for example,r-bp10noxlhcoim2****).
- Custom account: Enter<username>:<password>. For example, if the username istestaccountand the password isRp829dlwa, entertestaccount:Rp829dlwa. This format also works for the default account.
After entering the credentials, click Test Connection to verify. If the test passes, a Test Passed message appears. If it fails, click Check next to Test Failed and update the credentials accordingly.Compliance warranty regarding cross-border data transfers Read and select the check box to agree to the compliance commitment. Backup destination information Backup storage type Where backup data is stored:
- DBS Storage (recommended): Data Disaster Recovery manages storage. No OSS bucket required. Charged by data volume. See Storage fees.
- OSS For User: Stores data in your own OSS bucket. Create the bucket in advance (Standard storage class only). See Create buckets. If you select this option, also configure the OSS Bucket Name parameter.
For large data volumes, a subscription storage plan is more cost-efficient than pay-as-you-go.Storage encryption Encryption method for stored data:
- Encrypted (recommended): Uses AES-256 with OSS server-side encryption. OSS encrypts objects on upload and decrypts them on download transparently. See Server-side encryption.
- Non-encrypted: Data is stored without encryption.
-
In the Edit Backup Objects step, find the database or table to back up in the Available section. Click the rightwards arrow to move it to the Selected section, then click Next.
- To back up all databases, click Select All in the lower-left corner of the Available section. Supported backup granularity varies by database type. See Supported database types and features. - Databases created after the backup schedule is set up are not included by default. To add them, update the backup objects on the Configure Task page. See Modify backup objects.
-
In the Configure Backup Time step, configure the following parameters and click Next.
Parameter Description Full-scale backup frequency Periodic Backup or Single Backup. If you select Periodic Backup, also configure Full Data Backup Recurrence and Start At. Full data backup recurrence The days of the week to run the backup. Select at least one day. Start at The start time. Set this to an off-peak period (for example, 01:00) to avoid impacting production workloads. If a previous full backup is still running at the scheduled start time, Data Disaster Recovery skips the next run. Incremental backup Whether to enable incremental backup. Displayed only when Full-scale backup frequency is set to Periodic Backup. Enable this to support point-in-time recovery. Maximum concurrent threads for full data backup The maximum number of threads for a full backup. Reduce this value to minimize the impact on database performance during backup. Maximum speed for full data backup The maximum speed for full data backup in KB/s. This parameter reduces the impact of backup on the single-thread performance of the Tair (Redis OSS-compatible) instance. You can use the default value. -
In the Edit Lifecycle step, configure the retention period for full backup data in the Configure Full Data Backup Lifecycle section. If you enabled incremental backup in step 6, also configure the lifecycle for incremental backup data. For lifecycle rule details, see How do I manage the lifecycle rules of backup sets?
-
Click Precheck.
-
When the Precheck Passed message appears, click Start Task. The backup schedule is active when its state changes to Running.
If an error occurs when starting the backup schedule, troubleshoot it as soon as possible. See How do I fix errors for an abnormal backup schedule? If the issue persists, contact technical support in the DingTalk group (ID: 35585947).
Restore data
In this example, the backup set is restored to a pre-created Tair (Redis OSS-compatible) instance. For information about how to create a Redis instance, see Step 1: Create an instance。
Log in to DMS 5.0.
-
In the top navigation bar, choose .
NoteIf you use the DMS console in simple mode, move the pointer over the
icon in the upper-left corner of the DMS console and choose . On the Backup Schedules page, find the backup schedule that you want to manage and click Manage in the Actions column.
On the Configure Task page, click Restore Database in the upper-right corner.
In the Set Time Restored To step of the Create Restore Task wizard, configure the parameters and click Next. The following table describes the parameters.
Category
Configuration
Description
N/A
Task Name
The name of the restore task. DBS automatically generates a task name. We recommend that you specify a name that can help you identify the task. Task names do not need to be unique.
Set Time Restored To
Restorable time range
The time range from the point in time when the first full backup set is created to the point in time when the latest full backup set is created. The database can be restored to a point in time within the time range.
Selected restore time point
The point in time to which you want to restore the source database. The value must be within the time range that is specified by the Time Range Available to Restore parameter.
Note-
If the incremental backup feature is enabled, DBS allows you to restore the data to a point in time from the completion of the first full backup to the completion of the last incremental backup.
-
If the incremental backup feature is disabled, DBS allows you to restore the data to a point in time when a full backup is complete.
Restore target database
Database location No public network IP: Port's self-built database (accessed through the database gateway): You can back up self-managed databases through Database Gateway DG. You need to configure Database Gateway DG for the database instance in advance。
User-Created Database with Public IP Address <IP Address:Port Number>: You can back up self-managed databases through a public IP address. You also need to configure the connection address and port of the source database instance.
ECS-Hosted Database: Back up a database on an ECS instance. You also need to configure the ECS Instance ID and database port of the source database instance.
ApsaraDB for Redis
Express Connect DB/VPN Gateway/Intelligent Gateway: You can back up self-managed databases through a VPC. You need to configure a VPC for the database instance in advance, and select the targetPeer VPC。
Instance region The region where the destination instance resides. Database type This parameter is set to Redis by default.
Gateway instance ID Select a Database Gateway DG instance.
NoteThis parameter is displayed only when the Database location parameter is set to Self-managed Database without Public IP:Port (Connected through Database Gateway DG).
Connection Address
The endpoint that is used to connect to the instance that you want to back up.
NoteIf network security settings, such as firewall settings, are specified on the server where the instance is deployed, click Set Whitelist to obtain the CIDR blocks of DBS, and then add the CIDR blocks to the whitelist of the server. This allows DBS to access the server.
This parameter is displayed only if you set the Database Location parameter to No public network IP: Port's self-built database (accessed through the database gateway), Express Connect DB/VPN Gateway/Intelligent Gateway, or User-Created Database with Public IP Address <IP Address:Port Number>.
Port
Enter the connection port of the source database instance. Default: 6379.
Redis instance ID Select the target Redis instance ID for restoration.
Password The password of the account that is used to connect to the database that you want to back up.
Compliance warranty regarding cross-border data transfers
Read and agree to the compliance commitment by selecting the check box.
-
On the Configure Objects to Restore page, configure the following information, and click Precheck。
Configuration
Description
Conflict Handling
The default Conflict Handling is set to Rename on Conflict. For example, table
job_infois renamed tojob_info_dbs_<restore_task_ID>_<timestamp>。Restore Objects
On the Source Database Objects box, select the databases or tables to restore, and move them to the Selected Database Objects box.
NoteSome databases support single-table or single-database restore granularity, reducing the data volume and recovery time (RTO). For specific supported restore granularity, see Supported database types and features。
On the Precheck dialog box shows Precheck Passed, click Start Task。
You can view the Restore Tasks tab on the left to view the database restoration progress.
NoteThe restoration time depends on the backup plan specifications and database size. Higher specifications result in faster restoration. For more information, see Guide to selecting backup methods and backup plan specifications。
More operations
| Task | Reference |
|---|---|
| Create a backup schedule via API | CreateBackupPlan or CreateAndStartBackupPlan |
| Modify backup source, objects, time, or retention policy | Manage a backup schedule |
| Review backup schedule fees | Billing FAQ |
| Pause an unused backup schedule to reduce costs | Pause or start a backup schedule |
FAQ
Q: When configuring backup source information, the Database Location select ApsaraDB for Redis,Redis Instance ID dropdown shows No data was found, and I cannot select a Redis instance.
A: Currently, Database Backup Service (DBS) only supports backing up standard master-replica instance running Redis 4.0 instances. For more details, see Prerequisites。