tencent cloud

Redis Backup
Last updated: 2025-10-09 14:59:26
Redis Backup
Last updated: 2025-10-09 14:59:26

Feature Overview

Redis Backup is a SCF-based feature provided by COS. It allows you to store data in TencentDB for Redis to COS so that data can be stored persistently and protected from data loss or corruption. After you set a backup function rule for a bucket, SCF will scan your Redis backup files periodically and store them in the bucket.

Supports and Limits

Redis Backup functions back up only the backups of TencentDB for Redis. Therefore, if Redis Backup has not been enabled, the functions cannot be executed. For more information about TencentDB for Redis backup, see Backing Up TencentDB for Redis.
If you have previously added a Redis Backup rule to a bucket in the COS console, you can view the created Redis Backup function in the SCF console. Please do not delete this function, as it may cause your rule to become ineffective.
The current feature is only supported in regions where COS and SCF are available. Partial regions (such as Chongqing) are not supported. Refer to the regions displayed in the COS and SCF console for details.

Instructions

1. Log in to the COS Console.
2. In the left sidebar, click Application Integration > Data Backup to enter the application integration management page.
Note:
In addition to the feature entrance, you can also click bucket list, select the corresponding bucket name, click Function Compute > Redis backup function, and enter the function configuration interface to add.
3. Locate Redis Backup and click Configure Backup Rule to access the rule configuration page.
4. Click Add Function.
Note:
If you have not activated the SCF service, please go to the SCF console to activate it and follow the instructions to complete the service authorization.
5. In the pop-up window, configure the following items:
Function Name: Uniquely identifies a function and cannot be modified after being set. You can view the function in the SCF console.
Associated bucket: The bucket storing Redis RDB backup files. If configuring in the Function Compute feature item of the specified bucket, this configuration item is not available.
Trigger cycle: The Redis backup function triggers backup transfer operations via a scheduled trigger, supporting daily or custom periods.
Note:
For example, a user configured a Redis backup rule on July 3, 2023, specifying to backup the Redis instance file to COS at 00:00 daily.
The cloud function starts running around 00:00:03 on July 4, 2023 (with a few seconds delay during startup), scans Redis instance files from the past 3 days, then uploads them to COS.
Since the SCF execution time was 2023-07-04 00:00:03, the backup file time range is: 2023-07-01 00:00:00 ~ 2023-07-04 00:00:03.
Cron expression: When the trigger cycle is set to custom, you can specify the trigger period rule via Cron. Cron currently runs on UTC+8 China Standard Time, which is Beijing time. For detailed configuration policy, please refer to Cron related documentation.
Database Instance: TencentDB for Redis instance in the same region where the current bucket resides.
Delivery Path: Delivery path prefix of the backups. If not specified, backups will be stored in the root directory of the bucket.
SCF Authorization: SCF needs to be authorized so that it can read the Redis instances as well as their backups, and store the backups to the specified bucket.
6. After adding the configuration, click Confirm to see that the function has been added successfully.
7. You can perform the following operations on the newly created function.
Click Log to view the historical running status of Redis backup. If an error is reported, you can click Log to quickly redirect to the SCF console for viewing the error log details.
Click Details to view the function and trigger detailed information.
Click More > Edit to modify the Redis Backup rule.
Click More > Trigger to manually trigger the Redis data backup rule.
Click More > Delete to remove unused Redis Backup rules.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback