The backup feature can help protect your data from accidental loss in case of system hardware or instance failures. To safeguard your interests, TencentDB for SQL Server provides backup and recovery features, facilitating archiving and enabling restoration to local databases.
This document introduces you to the related information about backups.
Note:
If your sub-account only has permissions for part of the backup APIs, you need to re-authorize the sub-account with your root account after the new backup version is switched to. If your sub-account has permissions for all backup APIs, the sub-account does not require re-authorization.
The new backup feature is being gradually released. The platform will proceed in batches grouped by Tencent Cloud account (UIN). Only users included in the gradual release will be able to see the new feature page. If you do not see the new feature page, please wait for the release process to complete. We will work to release it for all users as soon as possible. If you have multiple Tencent Cloud accounts, the time you see the new feature may vary across accounts due to the gradual release policy. If you have any questions, you can submit a ticket for feedback. Backup Purpose
In the event of malicious or accidental deletion of databases or tables, data can be recovered through Backup/recovery, ensuring data security and preventing data loss or corruption.
Backup Billing
TencentDB for SQL Server new backup version only changes the console architecture and operations, with no change in fees. For specific backup fee details, see Backup Fees. Automatic Backup
TencentDB for SQL Server supports automatic backup settings, which include regular backups and periodic backups. Periodic backups provide a more flexible backup policy based on regular automatic backups without requiring additional retention of new backup files. You can configure corresponding automatic backup retention policies according to your business needs, enabling easy management of backup retention duration and cycles. By flexibly setting the number of backups retained for specific cycles, long-term preservation can be achieved. Additionally, reducing the retention duration of regular backups helps reduce backup costs.
Regular backups: The data backup retention period defaults to 7 days and can be customized to 3 - 7300 days. The log backup retention period defaults to the same as the data backup retention period. You can set the automatic backup frequency, and it is recommended to configure backups at least twice a week. For details, see Set Regular Backup Retention. Periodic backups: The periodic backup retention period defaults to 365 days and can be customized to 90 - 7300 days. The periodic backup retention period must be greater than the retention period set for regular backups. You can configure the periodic backup retention frequency and start time. For details, see Set Periodic Backup Retention. Manual backup
Manual backups for both instances and multiple databases are supported. You can manually create backup files at any time. Before performing a manual backup, ensure that existing databases have been created. The time required for manual backups increases gradually with the backup file size, typically taking approximately 5 minutes - 120 minutes. When performing manual backups, you can configure the retention period policy for manual backup files. For details, see Create Manual Backup. Cross-region backup
You can store backup files in another region to enhance compliance and disaster recovery capabilities while improving data reliability. After this feature is enabled, cross-region backups are triggered upon completion of the default local automatic backups. This process dumps the default automatic backups to cross-region backup storage devices, with a default retention period of 3 days. The retention period is customizable, with a minimum of 3 days and a maximum of 7300 days. For details, see Cross-Region Backup. Data backup
Manual backups allow you to back up individual databases, multiple databases, or all databases within an instance. Automatic backups cover the entire instance. For manual backup files, you can choose to follow either the automatic backup retention period policy or the instance lifecycle policy. Automatic backup files have a default retention period of 7 days, with customizable data backup retention (ranging from 3 to 7300 days). Expired backups are automatically deleted. Please download any backup files requiring long-term retention to your local storage promptly.
Log backup
The system automatically generates log backups (log files) and uploads them to cloud storage. You can customize the log backup frequency, range: 10 minutes - 60 minutes. It is recommended to set it to 10 minutes, as the higher the frequency, the lower the risk. Log files can be downloaded, and the log backup retention period aligns with the data backup retention period (3-7300 days). Backup sets are automatically deleted upon expiration.
Backup Target
Backup objects are categorized into instance backups and multi-database backups. Instance backups allow you to back up all databases within an entire instance, while multi-database backups enable you to select specific databases for backup.
Configure Backup Task
Used to configure whether backup files are in single-database backup format or archived backup files, and to set whether backups are performed on primary or secondary instances. By default, backup tasks run on primary instances. For details, see Configure Backup Tasks. View and Download Backups
To facilitate user access, management, and analysis of backup information, you can View Backups and Download Backups through the console. This supports filtering backups by time dimensions including: past 24 hours, past 7 days, past 15 days, past 30 days, and custom time ranges. Deleting a Backup
During database usage, backup files are continuously generated to preserve data and enable disaster recovery. These files accumulate over time and require periodic management based on actual needs. You can delete database backups to reduce backup storage costs. Note:
- Automatically generated backup files cannot be deleted manually and will be automatically removed upon expiration.
- For manual backups, you can set retention periods to align with automatic backups or the instance lifecycle. Manually created backup files support manual deletion. For details, see Delete Manual Backups. Conversion from regular backups to scheduled backups
Regular backups under the same instance have a shorter retention period than periodic backups. Therefore, TencentDB for SQL Server supports converting regular backups under the same instance to periodic backups. This enhances management capabilities for historical regular backup files and changes their backup type and retention policy. For details, see Convert Regular Backups to Periodic Backups. View Backup Overview (Instance Dimension)
You can view the backup space and usage trends for a specific instance in a region, gaining an intuitive understanding of its current local and cross-region backup sizes. This also provides a clear overview of backup space consumption across various backup methods (for example: automatic backups - regular backups, automatic backups - periodic backups, manual backups). For details, see View Backup Overview (Instance Dimension). View Backup Overview (Region Dimension)
The backup space occupied by TencentDB for SQL Server instance backup files is allocated per region. This backup space represents the total storage space for all SQL Server database backups within a region, including automatic data backups, manual data backups, and log backups.
Extending backup retention periods or increasing manual backup frequency will increase database backup storage space. You can View Backup Overview (Region Dimension) to see backup space statistics and trends for all instances under each region in your account, as well as real-time backup space statistics for individual instances. Related APIs
|
| This API is used to create backups. |
| This API (ModifyBackupStrategy) is used to modify backup policies. |
| This API (ModifyBackupName) is used to modify backup task names. |
| This API (DescribeBackups) is used to query the backup list. |
| This API (DescribeRegularBackupPlan) is used to query the instance's regular backup retention plan. |
| This API (RemoveBackups) is used to delete manually created backup files. |
| This API (DescribeBackupByFlowId) is used to query the details of created backups by the ID of the backup creation process, which can be obtained from the CreateBackup API. |
| This API (DescribeBackupFiles) is used to query single-database backup details. |
| This API (DescribeBackupMonitor) is used to query backup space usage details. |
| This API (DescribeBackupStatistical) is used to query the real-time backup statistics list. |
| This API (DescribeBackupSummary) is used to query database backup overview information. |
| This API (ModifyCrossBackupStrategy) is used to enable or disable cross-region backup policies. |
| This API (DescribeCrossRegions) is used to query the target regions for cross-region backups. |
| This API (DescribeCrossBackupStatistical) is used to query the cross-region backup real-time statistics list. |