Adding MySQL Database Server for Backup

Adding MySQL Database Server for Backup

MySQL Server can be backed up using the BDRSuite Backup Server. You can simply add the source to the BDRSuite Backup Server and configure backups. Navigate to Data Sources tab and choose Add MySQL Database Server.
When a MySQL Database Server is added to the BDRSuite Backup server, a BDRSuite Backup Agent (BBA) is automatically or manually  installed in the target machine.

Procedure to add MySQL Database Server

MySQL Database Server has to be added before you begin configuring the backup schedule. In the Data Sources tab choose ‘Add MySQL database Server. You will be taken to a page where you will see a message stating ‘No host added’ if you adding host for the first time.
Click on ‘Add MySQL Database Server‘ and there are two methods provided on the opening page for adding which are as follows;
  1. Manual Agent Installation
  2. Automatic Agent Installation

Manual Agent Installation

Step 1: Download Backup Agent

Download the backup agent from the BDRSuite Backup server.

Step 2: Backup Agent Installation on Individual Hosts

Run Backup Agent setup file on the target host and follow the on-screen instructions to proceed with the installation.
During the installation, you will be prompted to enter the following information:
  1. Display Name: Enter a name to identify the host in the backup server.
  2. Backup Server DNS Name/IP Address: Enter the BDRSuite Backup Server DNS Name/IP Address to register this host with the backup server.
  3. Choose Backup Component: Select the option ‘MySQL Backup’.
  4. MySQL Backup: Credentials & Database Path: Specify the credential used to authenticate MySQL database and the file path to the MySQL executables.
Complete the installation process by providing the necessary information.
Once the installation is successful, the agent will automatically establish connection and register the host with the backup server.
To verify the installation and connection, go to the Data Sources menu on the backup server. You will see the host details, including Hostname/IP address and connection status.

Bulk Installation of Backup Agent

Download backup agent and install it on multiple backup hosts (where the MySQL Database runs) simultaneously using the command below through any third party tool.
A. Windows
msiexec /i BDRSuite_Delegation_Service_7_0_0_1_U1.msi /qn BACKUPSERVERINFO=”Enter Backup Server IP Address/DNS Name” MYSQLBACKUPENABLED=”1″ MYSQLUSERNAME=”Enter MySQL Database Username” MYSQLPASSWORD=”Enter MySQL Database Password” MYSQLPORT=”Enter MySQL Port” MYSQLEXEPATH=”Enter MySQL Server Executable Path” MYSQLDUMPEXEPATH=”Enter MySQL Server Dump Executable Path”
B. Linux
bash BDRSuite_Delegation_Service_7_0_0_1_U1_RH.bin –BACKUPSERVERINFO “Enter Backup Server IP Address/DNS Name” –MYSQLBACKUPENABLED “1” –MYSQLUSERNAME “Enter MySQL Database Username” –MYSQLPASSWORD “Enter MySQL Database Password” –MYSQLPORT “Enter MySQL Port” –MYSQLEXEPATH “Enter MySQL Server Executable Path” –MYSQLDUMPEXEPATH “Enter MySQL Server Dump Executable Path”

Automatic Agent Installation

This option allows you to add each host by entering their IP address and credentials.  This will automatically install Backup Agent on the target host
Add MySQL Database Server by providing ‘Hostname/IP Address and its login credentials.
Notes
Note: You can add as many MySQL Servers into the BDRSuite Backup Server whenever required 
Display Name: Specify a name for the host to identify it on the BDRSuite Backup Server. This name will be used to distinguish the hosts with the same IP Address.
IP Address/DNS Name : Enter the hostname or IP address of the hostname for which you have to proceed with the backup
The Hostname can be added using FQDN(Fully qualified domain name) ie., machine_name.domain_name. You can connect your host with BDRSuite Backup Server through any of the following combinations in the Hostname/IP Address section:
  1. Hostname – Enter the Hostname alone
  2. Hostname@Domain name – Enter the hostname followed by @ and domain name
  3. Domain name/Hostname – Enter the domain name followed backslash (/) and the hostname
  4. 192.xxx.xxx.xxx – Enter the IP address
Credentials: You can add new MySQL credentials or select the existing credentials.
User Name: Enter the username of the specific MySQL Host
Password: The password of the MySQL Host or IP Address
MySQL Server Instance Port
BDRSuite Backup Server uses the MySQL Server default port – 3306. If you have changed it then enter the custom port.
Enter MySQL Executable Path: Enter the file path to the MySQL Server executable file
Enter MySQL Dump Executable Path: Enter the file path to the MySQL Dump executable file
This path is to temporarily dump backup data in the database server before initiating the backup. You can customize the dump location for each backup job which can be done during the backup job configuration.
Ensure that your storage has ample space allocated for the dump, in accordance to the size of the data intended for backup. Subsequent to the completion of the backup, the dump will be removed.
MySQL Database Credentials You can select the credentials that you used to authenticate MySQL Database. You can add new MySQL Database credentials or select the existing credentials.
  1. Credential Display Name: Enter a name to identify the added credential.
  2. User Name: Enter the username of the specific host
  3. Password: The password of the host or IP Address
After entering the necessary MySQL Host details, select the ‘Save’ option to initiate a pop-up prompting confirmation. Proceed by clicking on ‘Confirm,’ and the MySQL Host will be successfully added to the BDRSuite Backup Server.
Edit: You can make changes to all the added details of the MySQL Host using this ‘Edit’ option. The Display Name/DNS Name, the MySQL Host credentials, the MySQL Instance Port, MySQL Executable path, MySQL dump location and the MySQL Database Credentials can be modified.
Delete: If you want to remove a particular MySQL Host, click the Delete option. A pop-up window with the message “Are you sure, you want to delete the selected server or host?” will appear. Click Yes, Delete.
RescanExecuting the rescan option allows you to establish a successful connection between the BDRSuite Backup Server and the MySQL Host, in case of any interruption that caused the connection failure.
Report: Click on the ‘Reports’ icon to view the Machine Name, Version, Installed Time, Status, Remarks. Further, expand it to view the installation start and end time.
Notes
Note: To obtain a stage-wise report of the agent installation, you can monitor the process in real-time. Under the ‘Status’ tab, you’ll find a ‘Progress’ icon and clicking on this icon will show you the stage-wise details, providing insights into the ongoing installation procedure.