Veritas NetBackup™ for MySQL Administrator's Guide
- Introduction to NetBackup for MySQL Agent
- Installing NetBackup for MySQL Agent
- Configuring NetBackup for MySQL Agent
- The NetBackup for MySQL backups and restores
- Troubleshooting for NetBackup for MySQL
- Appendix A. The NetBackup for MySQL commands and conventions
- Appendix B. The NetBackup for MySQL commands
The nbmysql configuration file
The NetBackup for MySQL configuration file (nbmysql.conf)
contains the parameters for the respective operations. It contains predefined settings and is located on the client. You can configure the parameters in the nbmysql.conf
file or provide them on the command line, where the command line parameters take precedence. The nbmysql.conf
file keeps you from providing the parameters every time you run operations. When parameters are not configured in the nbmysql.conf
file, then the default parameter value takes precedence.
The nbmysql.conf
file is located in the following locations:
(Windows)
install_path\NBMySQLAgent_8.1_AMD64\nbmysql.conf
.(Linux (RHEL)
install_path/NBMySQLAgent_8.1_linuxR_x86/nbmysql.conf
.(Linux SUSE)
install_path/NBMySQLAgent_8.1_linuxS_x86/nbmysql.conf
.
Table: The nbmysql.conf parameters lists the nbmysql.conf
parameters.
Table: The nbmysql.conf parameters
Parameters | Description | Required parameter for | Default value |
---|---|---|---|
DB_USER | Configures the MySQL database user name. and when not specified, then the default value is "root". | Backup and restore operations. | When you do not set the database user name, it defaults to root. |
DB_PORT | Configures the MySQL database server port number on which the backup or the restore should be performed. | Restore operations | When you do not set this database server port, it defaults to 3306. |
MYSQL_LIB_INSTALL_PATH | Configures the | Backup operations | No default value for this parameter. |
NETBACKUP_MASTER_SERVER | Specifies the NetBackup master server to run backups and restores. | Backup operations | No default value for this parameter. |
NETBACKUP_POLICY_NAME | Specifies the NetBackup DataStore policy name. | Backup operations | No default value for this parameter. |
NETBACKUP_SCHEDULE_NAME | Identifies the backup schedule that you configured while creating the DataStore policy. | Backup operations | No default value for this parameter. |
NETBACKUP_CLIENT_NAME | Defines the NetBackup MySQL client name. | Redirected restores and query backups. | When you do not set the NetBackup client, it defaults to the NetBackup master server. |
SNAPSHOT_SIZE | (Linux) Specifies the snapshot size in kilobytes, megabytes, or gigabytes as K, M, or G respectively. If you do not specify a measurement, the default measurement is M (megabytes). | LVM backups | When you do not set the snapshot size, it defaults to |
COPY_ID | Represents the backup image name. You can use this value to query, restore, or delete a specific backup. | To query, restore, or delete a backup using its backup image name. | No default value for this parameter. |
MYSQL_TARGET_DIRECTORY | Specifies the destination directory where you want to restore the backups. | Restore backups. | No default value for this parameter. |
NBMYSQL_LOG_LEVEL | The NBMYSQL_LOG_LEVEL lets you set the logging level for the NetBackup MySQL logs. The default value is 1. For a particular logging level, all details at that level or lower are logged. The MySQL debug logs includes the following verbose levels:
| The log levels help to control the amount of information that you want to access, when troubleshooting errors. | When you do not set |
NBMYSQL_LOG_SIZE | Configures the | You can specify the value according to the events that you want to write into the logs. | When you do not specify the |