Database backup (DBS) allows you to read data from secondary databases for full backup to reduce the impact on primary databases. This topic describes how to configure a backup schedule.
- A MongoDB replica set instance is created.
- A backup schedule is created. For more information, see Create a backup schedule.
Note The backup method is logical backup.
Supported deployment locations of source instances
- ApsaraDB for MongoDBNote You need only to specify the MongoDB Instance ID parameter. The system reads data from the secondary database. For more information, see Configure a backup schedule.
- User-Created Database with Public IP Address <IP Address:Port Number>
- Express Connect DB/VPN Gateway/Intelligent Gateway
In the following example, the deployment location of the source instance is set to Express Connect DB/VPN Gateway/Intelligent Gateway.
- 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 purchased.
- In the Configure Backup Source and Destination step of the Configure Backup Schedule wizard, configure the backup source and destination.
Section Parameter Description None Schedule Name The name of the backup schedule. DBS generates a backup schedule name. We recommend that you set a descriptive name that is easy to identify. Backup schedule names do not have to be unique. Backup Source Information Backup Mode The method that is used to back up data. Default value: Logical Backup. Database Location Set this parameter to User-Created Database with Public IP Address.Note If you set User-Created Database with Public IP Address, you do not need to specify the Peer VPC parameter. Database Type The type of the database that you want to back up. Default value: MongoDB. Peer VPC The virtual private cloud (VPC) where the database that you want to back up resides. Configuration of connection address of standby database Specifies whether to configure the endpoint of the secondary database. Select Yes.Note If you select No, you do not need to specify the Alternate address and Alternate port number parameters. Master Address The endpoint of the primary database. Master Port Number The port number of the primary database endpoint. Alternate address The endpoint of the secondary database. Alternate port number The port number of the secondary database endpoint. Database Name The name of the database that you want to back up. Master Database Account The username of the account used to connect to the database that you want to back up. Master Password The password of the account used to connect to the database that you want to back up.Note After you enter the username and password of the database account, click Test Connection next to the password to check whether the information of the database that you want to back up is correct. If the specified parameters are valid, the Test Passed message appears. If the Test Failed message appears, click Check next to Test Failed. Modify the information about the database that you want to back up based on the check results. Backup Destination Information Backup Storage Type The storage type of the backup data. Valid values:
- DBS built-in storage
- OSS for user
OSS Bucket Name The name of the OSS bucket in which you want to store data. Storage Encryption The method used to encrypt the stored data. Valid values:
- In the lower-right corner of the page, click Next.
- In the Edit Backup Objects step, find the database or table that you want to back up in the Available section.
Click the right arrow to add the selected database or table to the Selected section. Then, click Next.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 as 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 the Full Data Backup Recurrence and Full Data Backup Start At parameters. Full Data Backup Recurrence The days of the week on which DBS 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, DBS skips the next backup. Real-Time Transaction Log Backup Specifies whether to enable incremental backup. Maximum Concurrent Threads for Full Data Backup The maximum number of concurrent threads available for a full data backup.Note This value varies with the instance type of the purchased backup schedule.
- 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 status of the backup schedule changes to Running, the backup schedule takes effect.