tencent cloud

TencentDB for SQL Server

Release Notes and Announcements
Release Notes
Product Announcements
User Guide
Product Introduction
Overview
Product Architecture
Strengths
Use Cases
Regions and AZs
Major Version Lifecycle Explanation
Features and Differences
Instance Types
Instance Specifications
Storage Types
Common Concepts
Network Environment
License Statement
Purchase Guide
Billing Overview
Product Pricing
Purchase Methods
Renewal Instructions
Payment Overdue
Refund
From Pay-as-You-Go to Monthly Subscription
Instance Adjustment Fees Description
Local Backup Space Billing
Cross-Region Backup Billing
Viewing Bill Details
Getting Started
Creating TencentDB for SQL Server Instance
Connecting to TencentDB for SQL Server Instance
Managing TencentDB for SQL Server Instance
Operation Guide
Constraints and Limits
Usage Specifications and Suggestions
Maintaining Instance
Adjusting Instance Configuration
Read-Only Instance
Network and Security
Account Management
Database Management
Data Security
Parameter Configuration
Monitoring and Alarms
Backup and Restoration 
Log Management
Publish-Subscribe
SSIS
Data Migration (New)
Data Migration (Legacy)
Data Synchronization (DTS) 
Practical Tutorial
TencentDB for SQL Server Methods for Regular Maintenance
TencentDB for SQL Server Optimization of Slow SQL
How to Better Use Tempdb
Cross-Account Backup Restoration
Creating VPC for TencentDB for SQL Server
Connecting Kingdee K/3 WISE to TencentDB for SQL Server
Account Permissions and Permission Control
Enabling and Disabling the CDC Feature
Shrinking a Database
API Documentation
History
Introduction
API Category
Making API Requests
Sales and fee related APIs
Instance Management related APIs
Operation and maintenance management related APIs
Network management related APIs
Account management related APIs
Database management related APIs
Security group management related APIs
Data security encryption related APIs
Parameter configuration related APIs
Extended Event related APIs
Log management related APIs
Read only instance management related APIs
Publish and subscribe related APIs
Backup related APIs
Rollback related APIs
Data migration (cold standby migration) related APIs
SQL Server Integration Services (SSIS) related APIs
Data migration (DTS old version) related APIs
Data Types
Error Codes
FAQs
Overview
Model Selection
Pricing and Selection
Connection and Network
Account and Permission
Backup and Rollback
Data Migration
Publish/Subscribe
Read-Only Instance
Version and Architecture Upgrade
Disk Space and Specification Adjustment
Monitoring and Alarms
Log-Related
Parameter Modification
Features
Performance, Space, and Memory-Related FAQs
Service Agreement
Service Level Agreement
Terms of Service
Performance Evaluation
Performance Test Report
Glossary
Contact Us

Configure Scheduled Backups

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-01-27 16:16:42
TencentDB for SQL Server supports two methods for database backup: automatic backup and manual backup. For automatic backups, data backups are classified into two scenarios based on different backup retention policies: setting regular backup retention and setting periodic backup retention. The retention period for log backups in automatic backups remains consistent with that of regular data backups.
This article introduces you to how to set periodic backup retention via the console.

Enable Periodic Backup Retention

1. Log in to the SQL Server console.
2. Select a region above, locate the target instance, click Instance ID or Manage in the Operation column to go to the instance management page.

3. On the instance management page, select the Backup Management tab and click Auto Backup Settings.

4. In the pop-up dialog box, complete the settings for data backup and log backup, read and select the Backup Storage Billing Notes, and click OK.
Data Backup: The configuration items for data backup are set as follows.

Parameter
Description
Backup Start Time
Select a time period for backup initiation, preferably during off-peak hours. The backup start time indicates when the backup process begins, not when it ends. For example, if you select 00:00 - 01:00, the system will initiate a backup at a specific time point within this window. The exact initiation time depends on the backend backup policy and the backup system's status. Available time slots are as displayed on the console, such as 00:00 - 01:00, 01:00 - 02:00, and so on.
Data Backup Retention Period
The default retention period is 7 days. You can customize the retention period (3-7300 days). Backups will be automatically deleted upon expiration. Note: You cannot roll back to a time point outside the retention period. Therefore, set the data backup retention period based on your actual business needs.
Backup Cycle
Supports selecting any time from Monday to Sunday for performing backups.
Note:
To ensure that users' data backup retention time and backup cycle remain continuously available:
If the backup retention days are set to less than 7 days, the backup cycle will default to daily backups, and all days from Monday to Sunday will be selected by default.
If the backup retention days are set to 7 or more, backups must be performed at least twice a week. If only one backup is selected, the settings cannot be completed.
Expected Next Backup Time
Displays the next backup time for the current instance. The console shows the time in Beijing (UTC+8).
Scheduled Backup Retention
When scheduled backup retention is set up, you need to turn on this option to enable periodic backup retention.
Scheduled Backup Retention Period
Backups are retained for 365 days by default. Custom retention periods (90 days - 7300 days) are supported. Backup sets are automatically deleted upon expiration or when the instance is terminated.
Note:
The retention period for scheduled backups must be longer than that for regular data backups.
Archive Backup Retention Policy
Supports setting the number of backups to retain on a weekly, monthly, quarterly, or yearly basis.
Note:
The maximum number of retained backups varies for different time periods. When the number of backups to retain is set, ensure it is within the maximum limit.
When the number of backups to retain is set to 1, the earliest valid backup in the current cycle will be preserved.
When the number of backups to retain is set to 2, the first and an intermediate valid backup in the current cycle will be preserved.
When the number of backups to retain > 2, backups are preserved at average time intervals within the current retention period.
Scheduled Backup Start Time
Set the scheduled backup start time. The selectable time range is up to one month.
Log backup: The configuration items for log backup are set as follows.

Parameter
Description
Log Backup Retention Period
By default, it is consistent with the data backup retention period. Range: 3 - 7300 days. Backup sets are automatically deleted upon expiration.
Log Backup Frequency
The default is 10 minutes. Range: 10 minutes - 60 minutes. It is recommended to set it to 10 minutes. The higher the frequency, the lower the risk.

Modify Scheduled Backup Retention

After enabling periodic retention, you can modify the periodic retention policy. Refer to Enable periodic retention to reconfigure the parameters.
Note:
Changing the retention period for periodic backups will affect the retention duration of existing periodic backups, which will result in backups exceeding the retention period being cleaned up.
Changing the periodic backup retention policy will not affect backups retained under the previous policy, but will only affect new backups.
Changing the start time will not affect the start time of existing periodic backups, but only affects new backups.

Disable Regular Backup Retention

Note:
After it is disabled, no new periodic retention backups will be generated.
After disabling, existing backups will continue to be retained and automatically deleted upon expiration according to the original policy. You may also modify the periodic retention period to clean up existing periodic backups.
1. Log in to the SQL Server console.
2. Select a region above, locate the target instance, click Instance ID or Manage in the Operation column to go to the instance management page.
3. On the instance management page, select the Backup Management tab and click Auto Backup Settings.
4. In the pop-up window, set the button after Scheduled Backup Retention to disable, read and select Backup Storage Billing Notes, and click OK.


View Retention Plan

After setting the periodic backup retention policy and start date, you can click View Backup Retention Plan after the periodic backup start time to preview the backup schedule.


Blue dates indicate regular backup dates.
Red dates indicate periodic backup dates.
You can click Regular Backup or Periodic Backup to hide the corresponding date color coding for easier viewing.
The backup plan preview currently shows the backup retention status for the next year, for reference only.

Related APIs

API
Description
This API (DescribeRegularBackupPlan) is used to query the instance's regular backup retention plan.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백