Database Backup allows you to physically back up MySQL databases in full backup, incremental backup, and binary log backup modes. This topic describes how to physically back up a MySQL database.
- The database to be backed up is a self-managed Linux-based MySQL database, and the
database uses one of the following versions of MySQL engines: 8.0, 5.7, 5.6, and 5.5.
Note Database Backup supports the following Linux operating systems: Red Hat Enterprise Linux, CentOS, and Oracle Linux 7.
- A backup gateway is installed on the server in which the database to be backed up is stored. For more information, see Add a backup gateway.
Create a backup schedule
For more information, see Purchase a backup schedule.
- Log on to the DBS console.
- In the left-side navigation pane, click Backup Schedules. On the Backup Schedules page, select a region in the upper-left corner.
- On the Backup Schedules page, click Configure Backup Schedule in the Actions column corresponding to the backup schedule that you want to configure.
- In the Configure Backup Source and Destination step of the Configure Backup Schedule wizard, configure the backup source and destination,
and click Next in the lower-right corner of the page.
Section Parameter Description N/A Schedule Name The name of the backup schedule. Database Backup generates a backup schedule name. We recommend that you set a descriptive name that makes the backup schedule easy to identify. Backup schedule names do not have to be unique. Backup Source Information Backup Mode The method used to back up data. By default, the backup method that you selected when you purchased the backup schedule is used. Backup Type The type of the backup. Default value: Native physical backup. Valid values:
- Native physical backup: Normal physical backup.
- Physical backup dump: This backup type is unavailable.
Instance Region The region where the database that you want to back up is deployed. Backup Gateway The backup gateway that you want to install to back up data. For more information, see Add a backup gateway. Database Type The engine of the database that you want to back up. Default value: MySQL. Address The IP address of the host in which the database is deployed. Default value:
Port Number The number of the port used to connect to the database that you want to back up. Default value:
Database Account The account used to connect to the database that you want to back up. Password The password used to connect to the database that you want to back up. Backup Destination Information Backup Storage Type The type of storage used to back up data. Valid values:
Note In this example, select DBS built-in storage (recommended). If you select OSS for user, you must set the OSS Bucket Name parameter.
- DBS built-in storage (recommended)
- OSS for user
OSS Bucket Name The name of the OSS bucket.
This parameter is valid only when you set the Backup Storage Type parameter to OSS for user.
Storage Encryption The method used to encrypt the stored data. Valid values:
- Encrypted: The backup data is encrypted.
The server-side encryption feature of Object Storage Service (OSS) is used. When you upload an object to OSS, OSS encrypts and stores the object. When you download the encrypted object from OSS, OSS decrypts the object and returns the decrypted object to you. For more information, see Server-side encryption.
- Non-encrypted: The backup data is not encrypted.
- In the Edit Backup Objects step, select Back Up Entire Instance. Click Next. By default, Back Up Entire Instance is selected. Note If you back up an entire database, the permission data and stored procedures are also backed up.
- In the Configure Backup Time step, set the parameters described in the following table and click Next.
Parameter Description Full-scale Backup Frequency The frequency of the backup schedule. Valid values: Periodic Backup and Single Backup.Note If you select Periodic Backup, you must set Full Data Backup Recurrence, Full Data Backup Start At, and Real-Time Transaction Log Backup. Full Data Backup Recurrence
The days of the week on which Database Backup runs the backup schedule.
Full Data Backup Start At
The start time of the backup.Note If the time required to complete a full data backup is longer than the backup interval, Database Backup skips the next backup.
Real-Time Transaction Log Backup
Specifies whether to enable incremental backup.
This parameter is valid only when you set Full-scale Backup Frequency to Periodic Backup.
Maximum Concurrent Threads for Full Data Backup
The maximum number of concurrent threads available for a full data backup. The maximum number of actual concurrent threads varies based on backup schedule specifications in the console.
Read speed limit The limit on the disk I/O. You can set the limit based on your need. The default value of this parameter is
0, which indicates that the disk I/O is unlimited.
Backup network speed limit
The limit on the network bandwidth. You can set the limit based on your need. The default value of this parameter is
0, which indicates that the network bandwidth is unlimited.
Transaction Log backup interval
The interval at which incremental backups are performed. Database Backup performs incremental backups based on your settings. If you set the interval to 10 minutes, Database Backup performs an incremental backup every 10 minutes.
This parameter is valid only when you set the Real-Time Transaction Log Backup parameter to Enable.
Enable compression Specifies whether to enable compression during backup. Valid values:
- Enable: Data is compressed during backup to reduce storage space.
- Disable: Data is not compressed during backup.
Compression algorithm The algorithm used to compress data. Default value: GZIP. The following compression tools are supported:
This parameter is valid only when you set Enable compression to Enable.
- In the Edit Lifecycle step, configure the lifecycle for a full data backup in the Configure Full Data Backup
Lifecycle section. Note If you select Enable for the Real-Time Transaction Log Backup parameter, you must configure the backup time for incremental backup data.
- After the configuration is complete, click Precheck in the lower-right corner of the page.
- If the Precheck Passed message appears, click Start Task. Note When the state of the backup schedule changes to Running, the backup schedule takes effect. You can view the backup task on the Backup Schedules page. For more information, see View backup schedules.