TencentDB for MySQL offers a certain amount of backup capacity free of charge based on the region, which is equivalent to the sum of storage capacity of all high-availability edition and finance edition instances (including master and disaster recovery instances) in the region.
For pricing details about backup capacity exceeding the free tier, see TencentDB for MySQL Price Calculator.
The rollback feature relies on the backup cycle and retention days of data backup and log backup (binlog). The rollback time for instance data will be affected if you reduce the automatic backup frequency and retention period. Please configure them properly as needed.
|Business Scenario||Recommended Backup Retention Period|
|Core businesses||7-732 days|
|Non-core and non-data businesses||7 days|
|Archive businesses||7 days. We recommend that you manually back up data based on business needs and delete it promptly after use.|
|Testing businesses||7 days. We recommend that you manually back up data based on business needs and delete it promptly after use.|
You can configure it on the instance backup and restore page in TencentDB for MySQL Console.
TencentDB for MySQL instances are fully backed up on a daily basis. For more information, see Backup Mode. You can also back up data by the following methods:
You can use the
wget -c 'backup file download address' -O custom filename.xb command for download. Note that the download address should be placed inside a pair of single quotation marks (') for the program to identify.
No. We recommend that you use DTS to migrate a MySQL instance.
A running backup task cannot be canceled.
We recommend that you copy the download address on the instance backup and restore page in TencentDB for MySQL Console, log in to a (Linux) CVM instance in the same VPC as the TencentDB instance, and run the
wget command for high-speed download over the private network.
wgetcommand format: wget -c 'backup file download address' -O custom filename.xb
Expired backup sets will be deleted automatically and cannot be downloaded or restored.
Manual backup will also take up the backup capacity. Please use the backup capacity properly to avoid extra fees.
No. However, you can reduce the backup frequency and delete manual backup no longer used via TencentDB for MySQL Console to lower the capacity usage.
Please check the automatic backup time you configured. If the instance is performing the daily automatic backup, you cannot initiate a manual backup task.
After the backup feature was upgraded, both logical and physical backup adopt the new compression algorithm, and some download features may be currently unavailable. To perform logical backups by tables, you can select Logical backup > Specify table in manual backup and download the completed backup file.
Because backup files in the latest version adopt a new compression algorithm, they cannot be unpacked/decompressed using the original tar tool. Instead, xbstream and qpress are required.
For details about how to unpack/decompress with xbstream and qpress, please see Restoring Database from Physical Backup and Restoring Database from Logical Backup.
qpress -d test_import_57_backup_20181114115236.sql.qp
The complete backup file can be obtained, such as test_import_57_backup_20181114115236.sql. ### How do I download xbstream and qpress? - xbstream is a subprogram of Percona XtraBackup. To use it, you need to install Percona XtraBackup from binaries or `yum` repositories. - Download qpress [here]( ) and extract the qpress binary files by running the tar command: For more information on XtraBackup and qpress installation, see [Restoring Database from Physical Backup]( ) ### How do I view binlogs in MySQL? - Download binlogs from the console locally to, for example, the CVM instance. - View them using the mysqlbinlog command. For the local server to view binlogs, MySQL v5.6 requires mysqlbinlog v3.4 or higher. ### How do I sync real-time data in two instances with an intra-city active-active architecture configured? You can purchase [disaster recovery instances]( ) in the TencentDB for MySQL Console.