0% found this document useful (0 votes)
19 views

NetBackup10 AdminGuide MariaDB

Uploaded by

qsdf qdsf
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

NetBackup10 AdminGuide MariaDB

Uploaded by

qsdf qdsf
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 46

NetBackup™ for MariaDB

Administrator's Guide

Windows and Linux

Release 10.0
NetBackup™ for MariaDB Administrator's Guide
Last updated: 2022-02-25

Legal Notice
Copyright © 2022 Veritas Technologies LLC. All rights reserved.

Veritas, the Veritas Logo, and NetBackup are trademarks or registered trademarks of Veritas
Technologies LLC or its affiliates in the U.S. and other countries. Other names may be
trademarks of their respective owners.

This product may contain third-party software for which Veritas is required to provide attribution
to the third party (“Third-party Programs”). Some of the Third-party Programs are available
under open source or free software licenses. The License Agreement accompanying the
Software does not alter any rights or obligations you may have under those open source or
free software licenses. Refer to the Third-party Legal Notices document accompanying this
Veritas product or available at:

https://www.veritas.com/about/legal/license-agreements

The product described in this document is distributed under licenses restricting its use, copying,
distribution, and decompilation/reverse engineering. No part of this document may be
reproduced in any form by any means without prior written authorization of Veritas Technologies
LLC and its licensors, if any.

THE DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED


CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED
WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH
DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. Veritas Technologies LLC SHALL
NOT BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES IN CONNECTION
WITH THE FURNISHING, PERFORMANCE, OR USE OF THIS DOCUMENTATION. THE
INFORMATION CONTAINED IN THIS DOCUMENTATION IS SUBJECT TO CHANGE
WITHOUT NOTICE.

The Licensed Software and Documentation are deemed to be commercial computer software
as defined in FAR 12.212 and subject to restricted rights as defined in FAR Section 52.227-19
"Commercial Computer Software - Restricted Rights" and DFARS 227.7202, et seq.
"Commercial Computer Software and Commercial Computer Software Documentation," as
applicable, and any successor regulations, whether delivered by Veritas as on premises or
hosted services. Any use, modification, reproduction release, performance, display or disclosure
of the Licensed Software and Documentation by the U.S. Government shall be solely in
accordance with the terms of this Agreement.

Veritas Technologies LLC


2625 Augustine Drive
Santa Clara, CA 95054

http://www.veritas.com
Technical Support
Technical Support maintains support centers globally. All support services will be delivered
in accordance with your support agreement and the then-current enterprise technical support
policies. For information about our support offerings and how to contact Technical Support,
visit our website:

https://www.veritas.com/support

You can manage your Veritas account information at the following URL:

https://my.veritas.com

If you have questions regarding an existing support agreement, please email the support
agreement administration team for your region as follows:

Worldwide (except Japan) [email protected]

Japan [email protected]

Documentation
Make sure that you have the current version of the documentation. Each document displays
the date of the last update on page 2. The latest documentation is available on the Veritas
website:

https://sort.veritas.com/documents

Documentation feedback
Your feedback is important to us. Suggest improvements or report errors or omissions to the
documentation. Include the document title, document version, chapter title, and section title
of the text on which you are reporting. Send feedback to:

[email protected]

You can also see documentation information or ask a question on the Veritas community site:

http://www.veritas.com/community/

Veritas Services and Operations Readiness Tools (SORT)


Veritas Services and Operations Readiness Tools (SORT) is a website that provides information
and tools to automate and simplify certain time-consuming administrative tasks. Depending
on the product, SORT helps you prepare for installations and upgrades, identify risks in your
datacenters, and improve operational efficiency. To see what services and tools SORT provides
for your product, see the data sheet:

https://sort.veritas.com/data/support/SORT_Data_Sheet.pdf
Contents

Chapter 1 Introduction to NetBackup for MariaDB Agent


............................................................................................. 6

About NetBackup for MariaDB Agent ................................................. 6


Features of NetBackup for MariaDB ................................................... 7
The NetBackup for MariaDB Agent package ........................................ 7
About the NetBackup for MariaDB Agent license .................................. 8

Chapter 2 Installing the NetBackup for MariaDB Agent .............. 9

Planning the installation of NetBackup for MariaDB Agent ...................... 9


Verifying the operating systems and the platforms ............................... 10
Installing prerequisites for NetBackup for MariaDB Agent ..................... 10
Post-installation requirements for NetBackup for MariaDB Agent ............ 11
Describing the NetBackup for MariaDB Agent package ........................ 12
Installing NetBackup for MariaDB Agent ............................................ 13
Authenticating the password ........................................................... 13
Uninstalling the NetBackup for MariaDB Agent ................................... 14

Chapter 3 Configuring the NetBackup for MariaDB .................... 15


The nbmariadb.conf configuration file ............................................... 15
Configuring the MariaDB backups with DataStore policies .................... 18

Chapter 4 NetBackup for MariaDB backup and restore ............ 20

About MariaDB backups ................................................................ 20


Performing MariaDB backups ......................................................... 22
Validating the backup information .................................................... 24
Querying the backups ................................................................... 24
Deleting backup information from the NetBackup catalog files ............... 25
About restoring MariaDB backups .................................................... 25
Performing the restores for MariaDB databases .................................. 27
Redirected restores ...................................................................... 27
Disaster recovery ......................................................................... 28
Contents 5

Chapter 5 Troubleshooting for NetBackup for MariaDB ............ 29

Troubleshooting errors when using NetBackup for MariaDB ................. 29

Appendix A About NetBackup for MariaDB commands and


conventions ................................................................... 36
About NetBackup for MariaDB commands ......................................... 36
About NetBackup for MariaDB command conventions .......................... 37

Appendix B NetBackup for MariaDB commands ............................ 39

nbmariadb -o backup .................................................................... 40


nbmariadb -o restore ..................................................................... 42
nbmariadb -o query ...................................................................... 43
nbmariadb -o delete ...................................................................... 44

Index .................................................................................................................... 45
Chapter 1
Introduction to NetBackup
for MariaDB Agent
This chapter includes the following topics:

■ About NetBackup for MariaDB Agent

■ Features of NetBackup for MariaDB

■ The NetBackup for MariaDB Agent package

■ About the NetBackup for MariaDB Agent license

About NetBackup for MariaDB Agent


NetBackup for MariaDB extends the capabilities of NetBackup to include backups
and restores of the MariaDB databases. The NetBackup for MariaDB agent is
located on the NetBackup client and supports the operations on standalone setups.
The agent supports the MariaDB version 5.5 and later.
The agent also supports to:
■ Validate the backup.
■ Query a backup and restore.
■ Delete the backup information from the catalog files.
■ Redirect restores.

Note: Ensure that the MariaDB agent and NetBackup are of same version for
successful backup and restore operations.
Introduction to NetBackup for MariaDB Agent 7
Features of NetBackup for MariaDB

NetBackup for MariaDB workflow


The NetBackup for MariaDB Agent reads the parameters from the nbmariadb.conf
file and then initiates the operations. The nbmariadb.conf file includes the
parameters that you must set to run the respective operations.
See “The nbmariadb.conf configuration file” on page 15.
The agent communicates with the MariaDB database to create a snapshot. The
Volume Shadow Copy Services (VSS) for Windows or Logical Volume Manager
(LVM) for Linux, takes a snapshot of the MariaDB database.
The agent then interacts with the NetBackup XBSA interface to update the server
name, policy, and schedule type information. The NetBackup master server connects
to the NetBackup client to backup or retrieve the data that you want to protect.
The agent mounts the snapshot, copies the file, and then sends it to the NetBackup
XBSA interface. The NetBackup XBSA interface then writes this data to the mounted
media or disk storage managed by the NetBackup media server.

Features of NetBackup for MariaDB


Table 1-1 lists the features that are supported by the agent.

Table 1-1 Features supported by NetBackup for MariaDB agent

Feature Description

Backup The agent supports full instance backups of the MariaDB database.

Restore The agent supports full instance restores of MariaDB backups.

Redirected The agent supports restoring MariaDB backups to alternate NetBackup


restore clients.

The NetBackup for MariaDB Agent package


The agent is packaged in NBMariaDBAgent_8.2.zip file and is available on
my.veritas.com site.
The package file contains the following platform files:
■ (Windows) NBMariaDBAgent_8.2_AMD64/
■ (Linux RHEL) NBMariaDBAgent_8.2_linuxR_x86/
■ (Linux SLES) NBMariaDBAgent_8.2_linuxS_x86/
Introduction to NetBackup for MariaDB Agent 8
About the NetBackup for MariaDB Agent license

About the NetBackup for MariaDB Agent license


The NetBackup for MariaDB Agent is installed on the NetBackup client software
and is not a separately licensed option of NetBackup. The NetBackup for MariaDB
Agent is available to customers who are entitled with a valid license of the Application
and Database License Pack. In general, licensing of the NetBackup for MariaDB
Agent follows the existing capacity licensing models for supported database agents.
Chapter 2
Installing the NetBackup
for MariaDB Agent
This chapter includes the following topics:

■ Planning the installation of NetBackup for MariaDB Agent

■ Verifying the operating systems and the platforms

■ Installing prerequisites for NetBackup for MariaDB Agent

■ Post-installation requirements for NetBackup for MariaDB Agent

■ Describing the NetBackup for MariaDB Agent package

■ Installing NetBackup for MariaDB Agent

■ Authenticating the password

■ Uninstalling the NetBackup for MariaDB Agent

Planning the installation of NetBackup for


MariaDB Agent
Table 2-1 lists the planning steps that are mandatory for installing the agent.

Table 2-1 General steps for installing the agent

Step Action

Step 1 Verify the operating systems.

For more information, See “Planning the installation of NetBackup for


MariaDB Agent” on page 9.
Installing the NetBackup for MariaDB Agent 10
Verifying the operating systems and the platforms

Table 2-1 General steps for installing the agent (continued)

Step Action

Step 2 Verify the prerequisites before you install the agent.

For more information, See “Planning the installation of NetBackup for


MariaDB Agent” on page 9.

Step 3 Install the NetBackup for MariaDB Agent on your operating system.

For more information, See “Planning the installation of NetBackup for


MariaDB Agent” on page 9.

Step 4 Authenticate the password for backups.

For more information, See “Planning the installation of NetBackup for


MariaDB Agent” on page 9.

Verifying the operating systems and the platforms


Verify that the NetBackup for MariaDB Agent is supported on your operating system
or platforms.
The agent supports the operations on following platforms:
■ Red Hat Enterprise Linux (RHEL) 6.8 and later
■ SUSE Enterprise Linux Server 11 SP4 and later
■ Microsoft Windows Server 2012 and later
■ Microsoft Windows 8.1 or later
■ NetBackup 8.2 (Server and client)
■ NetBackup XBSA SDK 1.1.0

Installing prerequisites for NetBackup for MariaDB


Agent
Before you install, ensure that you meet the following prerequisites:
■ NetBackup 8.2 or later is installed and operational on the master server, media
server, and the client.
■ Ensure that versions of the MariaDB agent and NetBackup are same. If you
upgrade NetBackup to newer version, then you must upgrade the agent version
also.
Installing the NetBackup for MariaDB Agent 11
Post-installation requirements for NetBackup for MariaDB Agent

■ The MariaDB database is installed and operational on the client.

Post-installation requirements for NetBackup for


MariaDB Agent
After you install
■ (Windows) Configure the NetBackup for MariaDB Agent to run with administrative
privileges.
■ (Windows) Add the NetBackup bin directory to the PATH user environment
variable.
■ (Linux) If the nbmariadb.conf file does not exist, create the default configuration
file. For more information, See “The nbmariadb.conf configuration file”
on page 15.
■ (Linux) The user of the agent is a superuser or has superuser privileges.
■ (Linux) Symbolic link: If a symbolic link does not exists, create a symbolic link
libmariadb.so or libmysqlclient.so and ensure that it points to
libmariadb.so.<n> and libmysqlclient.so.<n> respectively, where <n> is
the MariaDB client library version. You can create the symbolic link at your
chosen directory.
The client library name is libmysqlclient.so in older versions of MariaDB and
libmariadb.so. in newer versions.
For example, if the MySQL client library version is 18, then the symbolic link
libmysqlclient.so points to libmysqlclient.so.18.

Note: Ensure that you update the MARIADB_LIB_INSTALL_PATH parameter in


the nbmariadb.conf file with the absolute path of the symbolic link.

■ Set the privileges for the MariaDB users for backup and restore operations.
Table 2-2 lists the user type and the privileges for the respective user.

Table 2-2 User and privileges

User type Privileges

Backup LOCK TABLES, SELECT FILE, RELOAD, SUPER, UPDATE,


TRIGGER, SHOW, VIEW, EXECUTE, and EVENT.

Restore CREATE, DROP, INDEX, SHUTDOWN, INSERT, ALTER, DELETE,


UPDATE, TRIGGER, SUPER, and CREATE VIEW.
Installing the NetBackup for MariaDB Agent 12
Describing the NetBackup for MariaDB Agent package

To set the MariaDB server user privileges, run the following MariaDB commands:
GRANT SELECT, INSERT, UPDATE, CREATE, DROP, RELOAD, SHUTDOWN, FILE,
INDEX, ALTER, SUPER, LOCK TABLES, CREATE VIEW, SHOW VIEW, TRIGGER,
CREATE ROUTINE, DELETE, EVENT, ALTER ROUTINE ON, *.* TO 'USER' @
'localhost' IDENTIFIED BY 'PASSWORD';

For more information, refer to MariaDB Administration Guide.

Describing the NetBackup for MariaDB Agent


package
The agent is packaged in the NBMariaDBAgent_8.2.zip file and is available on
my.veritas.com site.
The package file contains the following platform files:
■ (Windows) NBMariaDBAgent_8.2_AMD64/
■ (Linux RHEL) NBMariaDBAgent_8.2_linuxR_x86/
■ (Linux SUSE) NBMariaDBAgent_8.2_linuxS_x86/
(Windows) NBMariaDBAgent_8.2_AMD64/ includes the following files:
■ NBMariaDBAgent_8.2_AMD64/README.txt

■ NBMariaDBAgent_8.2_AMD64/cab1.cab

■ NBMariaDBAgent_8.2_AMD64/Setup.exe

■ NBMariaDBAgent_8.2_AMD64/NBMariaDBAgent.msi

(Linux RHEL) NBMariaDBAgent_8.2_linuxR_x86/ includes the following file:


■ VRTSnbmariadbagent.rpm

(Linux SUSE) NBMariaDBAgent_8.2_linuxS_x86/ includes the following file:


■ VRTSnbmariadbagent.rpm

When you install the agent, accept the VERITAS LICENSE AGREEMENT to proceed
with installing the agent successfully.
The agent by default gets installed at the following locations:
■ (Windows) C:\Program Files\VERITAS\NBMariaDBAgent
■ (Linux RHEL & SUSE) /usr/NBMariaDBAgent/
Installing the NetBackup for MariaDB Agent 13
Installing NetBackup for MariaDB Agent

Installing NetBackup for MariaDB Agent


To install the agent
1 Download the NBMariaDBAgent_8.2.zip file.
2 Extract the file that applies to your operating system:
(Windows) NBMariaDBAgent_8.2_AMD64/
(Linux RHEL) NBMariaDBAgent_8.2_linuxR_x86/
(Linux SUSE) NBMariaDBAgent_8.2_linuxS_x86/
3 Run the file that applies to your operating system
(Windows) NBMariaDBAgent_8.2_AMD64/Setup.exe
(Linux RHEL) NBMariaDBAgent_8.2_linuxR_x86/VRTSnbmariadbagent.rpm
Use the rpm -ivh VRTSnbmariadbagent.rpm command.
(Linux SUSE) NBMariaDBAgent_8.2_linuxS_x86/VRTSnbmariadbagent.rpm
Use the rpm -ivh VRTSnbmariadbagent.rpm command.
4 Type y to accept the VERITAS LICENSE AGREEMENT. The agent gets
installed at the default location.

Note: Ensure that the MariaDB agent and NetBackup are of same version for
successful backup and restore operations.
To accept the EULA agreement automatically (silent installation), create a
/tmp/AgentInstallAnswer.conf file with following content:

Yes - to accept the EULA agreement


No - to decline EULA agreement

Authenticating the password


Authenticating the password keeps you from specifying the password every time
you run a backup. The (Windows) my.ini file and the (Linux) my.cnf file stores the
password and the application picks the password every time you run a backup.

Authenticating the password


The agent reads the plaintext authentication credentials from the my.cnf file in
Linux and my.ini file in Windows.
Installing the NetBackup for MariaDB Agent 14
Uninstalling the NetBackup for MariaDB Agent

Prerequisites
Before you authenticate the password, you must meet the following prerequisites:
■ (Windows) Set the user environment variable MYSQL_HOME to point to my.ini
file path.
■ (Linux) Include the Mariadb bin directory in $PATH.
To authenticate the password
1 (Optional) Add the client section.
2 Under the Client section, edit the my.ini or my.cnf file to add the password.
For example,
[client]
port=3306
password=<password>
3 To verify the password authentication, login to MariaDB server using the
following command:
mysql -u <user>

Uninstalling the NetBackup for MariaDB Agent


To uninstall the agent
1 (Windows) From the Control Panel, right-click the Veritas NetBackup
MariaDBAgent_8.2 file and Uninstall the agent.

2 (Linux RHEL or SUSE) To uninstall, run the following command:


rpm -e VRTSnbmariadbagent
Chapter 3
Configuring the NetBackup
for MariaDB
This chapter includes the following topics:

■ The nbmariadb.conf configuration file

■ Configuring the MariaDB backups with DataStore policies

The nbmariadb.conf configuration file


The NetBackup for MariaDB (nbmariadb.conf) configuration file contains the
parameters for the respective operations. It contains predefined settings and is
located on the client. You can configure the parameters in the nbmariadb.conf
file or provide them on the command line, where the command line parameters
take precedence.
The nbmariadb.conf file keeps you from providing the parameters every time you
run operations. When parameters are not configured in the nbmariadb.conf file,
then the default parameter value takes precedence.
The nbmariadb.conf file is located in the following locations:
■ (Windows)
C:\Program Files\Veritas\NBMariaDBAgent\nbmariadb.conf .

■ (Linux RHEL and SUSE) /usr/NBMariaDBAgent\nbmariadb.conf

Creating the nbmariadb configuration file


Starting from NetBackup 8.2, the nbmariadb.conf file is not created by default
when you install the agent on RHEL or SUSE. The existing configuration file is
prevented from getting overwritten as the RPM installer simply overwrites any
existing files in the destination directory /usr/NBMariaDBAgent/.
Configuring the NetBackup for MariaDB 16
The nbmariadb.conf configuration file

If the nbmariadb.conf file does not exist, you can create the file by running the
backup utility command without any options. For example, run the ./nbmariadb
command. This command creates the default nbmariadb.conf file.
Table 3-1 lists the nbmariadb.conf file parameters:

Table 3-1 The nbmariadb.conf file parameters

Parameters Description Required Default value


parameter for

DB_PORT Configures the MariaDB database Backups and When you do not specify
server port number on which the restores the port number, the
backup or the restore should be default is 3306.
performed. The port number verifies
the MariaDB service status.

DB_USER Configures the MariaDB database Backups When you do not specify
user name. the username, the default
is root.

MARIADB_LIB_INSTALL_PATH (Linux) Configures the Backups No default value.


libmariadb.so binary path.

MASTER_SERVER_NAME Specifies the NetBackup master Backups, restores, No default value.


server to run backups, restores query query, and delete.
and delete the backups and restores.

POLICY_NAME Specifies the DataStore policy name. Backups No default value.

SCHEDULE_NAME Identifies the backup schedule that Backups No default value.


you configured while creating the
DataStore policy.

CLIENT_NAME Defines the NetBackup MariaDB Redirected When you do not specify
client name. restores and query the client name, the
default is NetBackup
master server.

SNAPSHOT_SIZE (Linux) Specifies the snapshot size LVM backups When you do not specify
for LVM snapshots. Specify the the snapshot size, the
snapshot size in kilobytes, default is MB.
megabytes, or gigabytes as KB, MB,
or GB respectively.
Configuring the NetBackup for MariaDB 17
The nbmariadb.conf configuration file

Table 3-1 The nbmariadb.conf file parameters (continued)

Parameters Description Required Default value


parameter for

DB_BACKUP_ID DB_BACKUP_ID is the backup To delete a No default value.


image name. This parameter backup by
configures the backup file that you specifying its
specify using the backup id. backup image
name.

MARIADB_TARGET_DIRECTORY Specifies the destination directory Restores No default value.


where you want to restore the
backups.

NBMARIADB_LOG_LEVEL The NBMARIADB_LOG_LEVEL The log levels help When you do not specify
parameter lets you set the logging to control the the nbmariadb log level,
level for the nbmariadb logs. For a amount of the default is log level 1.
information that
particular logging level, all details at
that level or lower are logged. you want to
access for
The nbmariadb debug logs includes
troubleshooting
the following verbose levels:
errors.
■ 1 – ERROR: Conditions that
should be corrected, such as
configuration errors.
■ 2 – WARN: Conditions that are
not errors, but that might require
special handling.
■ 3 – INFO: Informational
messages
■ 4 – DEBUG: Debugging the
messages that is used for
troubleshooting.

NBMARIADB_LOG_SIZE Specifies the nbmariadb log size in You can specify When you do not specify
MB. The default size is 10MB. When the value the nbmariadb log size,
the log reaches the specified size, it according to the the default is 10MB.
overwrites the existing log events that you
information. want to write into
the logs.
Configuring the NetBackup for MariaDB 18
Configuring the MariaDB backups with DataStore policies

Table 3-1 The nbmariadb.conf file parameters (continued)

Parameters Description Required Default value


parameter for

BACKUP_TYPE Available options: Backup operations auto

■ auto: Default option. Performs an


auto discovery backup.

■ lvm: Agent forces to do a lvm


snapshot.

■ nonlvm: Agent forces to do


nonlvm way backup, using
mariabackup.

Configuring the MariaDB backups with DataStore


policies
The agent supports the DataStore policies to define the attributes, schedules,
clients list, and backup selections.
To configure the MariaDB database backups with DataStore policies
1 Log on to the master server as an administrator (Windows) or root (Linux).
2 In the NetBackup Administration Console, expand NetBackup Management,
and then click Policies.
3 In All Policies pane, right-click Summary of All Policies, and then click New
Policy.
4 In Add a New Policy dialog box, enter a unique name for the policy.
5 In the Change Policy dialog box, select DataStore Policy fromPolicy Type
drop-down list.
6 From the Policy Storage drop-down list, select a disk-based storage unit
for storage.
7 To select the schedule type, under the Schedules tab, click OK to select the
Application Backup schedule type.

Note: The XBSA framework supports the Application Backup schedule type
only.
Configuring the NetBackup for MariaDB 19
Configuring the MariaDB backups with DataStore policies

8 Under the Clients tab, click New and then add the NetBackup client that has
the NetBackup for MariaDB Agent.
9 In the Add Client screen, click New, and then in the Client Name field, type
the name of the client.
10 In the NetBackup Administration Console, click NetBackup Management
> Policies to view the policy in the existing policies list.
11 Verify the settings in nbmariadb.conf file, before you run the backup.
12 For more information, See “The nbmariadb.conf configuration file” on page 15.

Note: Ensure that the MariaDB agent and NetBackup are of same version for
successful backup and restore operations.
Chapter 4
NetBackup for MariaDB
backup and restore
This chapter includes the following topics:

■ About MariaDB backups

■ Performing MariaDB backups

■ Validating the backup information

■ Querying the backups

■ Deleting backup information from the NetBackup catalog files

■ About restoring MariaDB backups

■ Performing the restores for MariaDB databases

■ Redirected restores

■ Disaster recovery

About MariaDB backups


The nbmariadb -o backup command initiates the backup operation using the -S,
-P, -s and -l as required parameters. The parameter -z is the required parameter
for Linux operating systems.
The parameter portnum is the optional parameter. Configure these parameters in
the nbmariadb.conf file or provide them on the nbmariadb command line, where
the parameters provided on the command line takes precedence.
The agent protects the following files:
NetBackup for MariaDB backup and restore 21
About MariaDB backups

■ Schema files that are associated with all database tables.


■ Files that are associated with the database tables.
■ Data and index files.

Note: Ensure that the MariaDB agent and NetBackup are of same version for
successful backup and restore operations.

Figure 4-1 NetBackup for MariaDB backup workflow

Connect to the MariaDB database and


prepare to take a snapshot.
1

MariaDB
Database server Sends MariaDB data
for back up
Requests snapshot, reads and
mounts snapshot, reads the NetBackup 3 NetBackup
MariaDB data MariaDB agent master server
2 5
Snapshot Back up status is
creation returned

NetBackup
media server
NetBackup client

NetBackup XBSA
MariaDB data is
VSS/LVM Snapshot 4 backed up

Storage unit

The NetBackup for MariaDB workflow


When you initiate a backup, the agent connects to the MariaDB database to execute
a flush and read only lock on all tables. The agent then reads the associated
NetBackup for MariaDB Agent database files from the mounted directory and initiates
the backup. The LVM or VSS, then creates a snapshot, and mounts the snapshot.
NetBackup for MariaDB backup and restore 22
Performing MariaDB backups

The agent copies the associated files (the whole instance or the individual database)
and then sends to the NetBackup XBSA interface. The NetBackup XBSA interface
writes this data to the mounted media or disk storage managed by the NetBackup
media server.
The command prompt displays the successful completion status of the backup.
The Activity Monitor also displays the status for the backup job.

Performing MariaDB backups


Prerequisites
Before you perform the backups, you must meet the following prerequisites:
■ Ensure that versions of the MariaDB agent and NetBackup are same. If you
upgrade NetBackup to newer version, then you must upgrade the agent version
also.
■ (LVM users) Ensure that the MariaDB data directory and logs directory reside
on the logical volume.
■ (Windows) Set the NetBackup\bin directory in the environment variable.
For example, Path =C:\Program Files\Veritas\Netbackup\bin
■ (Windows) Set the MariaDB\bin directory in user environment variable.
■ Configure the DataStore policy from the NetBackup Administration Console.
■ (LVM) Verify that there is enough space for the snapshot in the volume group,
and then set the snapshot size in nbmariadb.conf file or by the command line.

Note: Ensure that the snapshot size is 50% of the instance size that you want
to backup.

■ (Linux) Create a symbolic link libmariadb.so and ensure that it points to the
correct libmariadb.so.<n> library version.
Ensure that you update the MARIADB_LIB_INSTALL_PATH parameter in the
nbmariadb.conf file with the absolute path of the symbolic link.
For more information, See “Post-installation requirements for NetBackup for
MariaDB Agent” on page 11.
■ Set the FLUSH and LOCK user privileges.
■ Set the following parameters in the nbmariadb.conf file:
■ DB_USER
NetBackup for MariaDB backup and restore 23
Performing MariaDB backups

■ DB_PORT

■ MASTER_SERVER_NAME

■ POLICY_NAME

■ SCHEDULE_NAME

■ MARIADB_LIB_INSTALL_PATH

■ (Linux) SNAPSHOT_SIZE

■ Verify the installing prerequisites and post-installation requirements.


For more information, See “Installing prerequisites for NetBackup for MariaDB
Agent” on page 10.
For more information, See “Post-installation requirements for NetBackup for
MariaDB Agent” on page 11.
To run the backup
1 Run the following command:
nbmariadb -o backup

-S master_server_name

-P policy_name

-s schedule_name

(Linux)-z snapshot_size
-l mariadb_library_path

[-portnum db_port]

[-u db_user]

(Linux)-b backup_type

2 (Optional) When prompted, type the database password. The NetBackup then
connects to the database and initiates the backup.

Scheduling MariaDB backups from the NetBackup


You can schedule the MariaDB backups from the NetBackup Administration
Console using the DataStore policy to call a backup script.
For more information, https://www.veritas.com/support/en_US/article.100041621
NetBackup for MariaDB backup and restore 24
Validating the backup information

Validating the backup information


After a successful backup, you can list the backups to view and verify the backup
information using the following command:
nbmariadb -o query

Querying the backups


The nbmariadb query command lists the backup files according to the options that
you specify. You can configure these parameters from the nbmariadb.conf file or
provide the parameters using the nbmariadb command line. The parameter -S is
the required parameter. Alternatively, you can query the backups using the -C and
-P options to define a different client and policy.

By default, NetBackup uses the values that you have configured in the
nbmariadb.conf file.

Before you run a query, you must set the following parameters in the
nbmariadb.conf file or provide on the command line:

■ CLIENT_NAME

■ POLICY_NAME

■ MASTER_SERVER_NAME

To query backup
1 Configure the settings in the nbmariadb.conf file or the nbmariadb command
line.
2 Run the following command:
nbmariadb -o query -S master_server_name [-C client_name] [-P
policy_name]

For example, to query a backup from Client A, run the following command:
nbmariadb -o query -S master_server_name [-C ClientA]

For example, to list backup files with the policy name policy_name, run the following
command:
nbmariadb -o query -S master_server_name [-P policy_name]

For example, to query a backup from the client Client A with policy name
policy_name, run the following command:

nbmariadb -o query -S master_server_name [-C ClientA] [-P policy_name]


NetBackup for MariaDB backup and restore 25
Deleting backup information from the NetBackup catalog files

Deleting backup information from the NetBackup


catalog files
The nbmariadb command for delete, removes the backup information from the
catalog files but retains the backup files on the NetBackup media server. The
parameter -S and -id are required parameters.
Before you delete the backups, you must set the following parameter in the
nbmariadb.conf file or provide them on the command line:

■ DB_BACKUP_ID

■ MASTER_SERVER_NAME

To delete a backup
1 Configure the parameters, in the nbmariadb.conf file or the nbmariadb
command line.
2 Run the following command:
nbmariadb -o delete -S master_server_name -id db_backup_image_name.

About restoring MariaDB backups


The nbmariadb -o restore command for restore initiates the restore operation
using -S, -t, and portnum as the required parameters. The parameters -id and
-C are optional parameters.

The parameter -id restores the backup using the specified backup image name.
The parameter -C lists all the backups that exists on the specified client. When you
do not specify the client, it defaults to NetBackup master server.

Note: Ensure that the MariaDB agent and NetBackup are of same version for
successful backup and restore operations.
NetBackup for MariaDB backup and restore 26
About restoring MariaDB backups

Figure 4-2 NetBackup for MariaDB restore workflow

Read progress
file
2

Progress file

Restore MariaDB Initiate restore


data NetBackup
NetBackup
MariaDB agent 1
4 master server
3
MariaDB
Database server Retrieve data
to restore

NetBackup
media server
NetBackup client
NetBackup XBSA

Storage unit

The NetBackup for MariaDB restore workflow


When you initiate a restore, the agent reads the command line arguments and
parses the nbmariadb.conf configuration file. The agent then interacts with the
NetBackup XBSA interface to retrieve the backup according to the specified
parameters.
The NetBackup XBSA interface reads the progress files to receive the MariaDB
backup files to restore them to the target directory.
The command prompt indicates the successful completion status of the restore.
The Activity Monitor also displays the status for the restore job.

Prerequisites
Before you run a restore, you must meet the following prerequisites:
■ Ensure that versions of the MariaDB agent and NetBackup are same. If you
upgrade NetBackup to newer version, then you must upgrade the agent version
also.
NetBackup for MariaDB backup and restore 27
Performing the restores for MariaDB databases

■ (LVM users) Ensure that data logs and the logs directory reside on the logical
volume
■ Ensure that you restore the MariaDB instance to a valid empty target directory.
■ (non-LVM) Ensure that the MariaDB service is running.
■ Set the following parameters in the nbmariadb.conf file:
■ CLIENT_NAME

■ DB_BACKUP_ID

■ (Linux) DB_PORT
■ MARIADB_TARGET_DIRECTORY

■ MASTER_SERVER_NAME

Performing the restores for MariaDB databases


To restore backup
1 Configure the parameters in the nbmariadb.conf file, or the nbmariadb
command line.
2 Run the following command:
nbmariadb -o restore -S master_server_name -t target_directory
portnum db_port [-id db_backup_image_name][-C client_name]

3 Restart the MariaDB services.

Redirected restores
Redirected restores lets you restore backup files to a client different from the client
that originally performed the backup. The new location can be a different host or a
different file path using a different name for the redirected restore. To redirect a
restore to a different host, include the destination client name in the
install_path\NetBackup\db\altnames directory.

Note: Ensure that the MariaDB agent and NetBackup are of same version for
successful backup and restore operations.
NetBackup for MariaDB backup and restore 28
Disaster recovery

Performing redirected restores


To redirect a restore to a different host
1 Update the nbmariadb.conf file with the NetBackup client name as the host
and the MariaDB target directory as the directory where you want to redirect
the restore.
2 On the NetBackup master server, create an altnames directory for the host
that you want to have permission to perform the redirected restore.
For example, to give Host B permissions to restore from another host, create
the following file:
■ (Windows) install_path\NetBackup\db\altnames\HostB
■ (Linux RHEL and SLES) /usr/openv/netbackup/db/altnames/HostB

3 In the altnames directory, add the names of the client(s) whose files the
requesting client wants to restore.
For example, if you want Host B to have permissions to redirect restores from
Host A, add Host A to the Host B file.
4 Run the following command:
nbmariadb -o restore -S master_server_name -t target_directory
-portnum db_port [-id db_backup_image_name] [-C client_name]

5 After a successful redirected restore, undo the changes that you made on the
master server and the client.
To redirect a restore to a different file path
1 Run the following command:
nbmariadb -o restore -S master_server_name -t target_directory
-portnum db_port [-id db_backup_image_name] [-C client_name]

2 After a successful restore, change the ownership of data directory to MariaDB


user.
3 Copy the restore data to the data directory.

Disaster recovery
Disaster recovery is the plan to recover the data that may get lost in a disaster
event. The agent supports redirected restore as a disaster recovery strategy.
For more information, See “Redirected restores” on page 27.
Chapter 5
Troubleshooting for
NetBackup for MariaDB
This chapter includes the following topics:

■ Troubleshooting errors when using NetBackup for MariaDB

Troubleshooting errors when using NetBackup


for MariaDB
General guidelines to resolve problems
Table 5-1lists the general steps that help you resolve problems you may encounter
while using NetBackup for MariaDB Agent.

Table 5-1 General steps to resolve problems

Steps Action Description

Step1 Remember the error Error messages are usually the vehicles for telling
message you something went wrong. If you do not see an
error on the command line, but still suspect a
problem, check the logs and the reports. These
can provide an error message that directly points
to the problem. The logs and reports are essential
troubleshooting tools.
Troubleshooting for NetBackup for MariaDB 30
Troubleshooting errors when using NetBackup for MariaDB

Table 5-1 General steps to resolve problems (continued)

Steps Action Description

Step 2 Identify what you were doing Ask the following questions:
when the problem occurred.
■ What operation was tried?
■ What method did you use?
■ What type of server platform and operating
system was involved?
■ If your site uses both master server and media
server, was it a master server or a media
server?
■ If a client was involved, what type of client was
it?
■ Have you performed the operation successfully
in the past? If so, what is different now?
■ What is the service pack level?
■ Do you use operating system software with the
latest fixes supplied, especially those required
for use with NetBackup?
■ Is your device firmware at a level, or higher than
the level, at which it has been tested according
to the posted device compatibility lists?

Step 3 Record all information. Capture potentially valuable information:

■ The NetBackup logs.


■ The logs specific to NetBackup for MariaDB
logs.
■ The logs specific to NetBackup XBSA .

Step 4 Correct the problem. After you define the problem, use the information
to correct it.

Step 5 Contact Technical Support If you cannot solve the troubleshooting, contact
the Technical support.

Troubleshooting errors using logs


To troubleshoot the errors, you can refer to the NetBackup logs, NetBackup for
MariaDB Agent logs, and the NetBackup XBSA logs. These logs are located at the
following locations:
The NetBackup logs are located at:
■ install_path\NetBackup\logs\bprd

■ install_path\NetBackup\logs\bpcd
Troubleshooting for NetBackup for MariaDB 31
Troubleshooting errors when using NetBackup for MariaDB

■ install_path\NetBackup\logs\user_ops\dbext\logs

You must enable the bprd and the bpcd log files. For more information, see the
NetBackup Troubleshooting Guide
The logs that are specific to NetBackup for MariaDB Agent are located at:
■ install_path\nbmariadb.log

The logs that are specific to NetBackup XBSA are located at:
■ <NetBackup_install_path>/netbackup/logs/exten_client

Troubleshooting NetBackup errors


For troubleshooting NetBackup errors, see NetBackup Troubleshooting Guide and
the NetBackup Commands Reference Guide

Troubleshooting NetBackup for MariaDB Agent errors


Table 5-2 lists the errors and the solutions to troubleshoot the problems while
running the operations.

Table 5-2 Troubleshooting NetBackup for MariaDB errors

Problems Description Solution

The nbmariadb backup fails You may encounter this problem Verify the following and then run the backup again:
with the following error: when the nbmariadb.conf file
■ Add or update the MariaDB library file location
is not updated with the following:
Unable to load mariadb library in the nbmariadb.conf file.
■ MARIADB_LIB_INSTALL_PATH ■ Ensure that the
■ MARIADB_LIB_INSTALL_PATH MARIADB_LIB_INSTALL_PATH is set to the
does not point to correct path. It should point to libmariadb
libmariadb.so.<n> library version.
library version. ■ (Linux) Create a symbolic link
libmariadb.so that points to the
libmariadb.so.<n> library version.

The nbmariadb backup fails The nbmariadb backup fails To add the appropriate database user name and
with the following error: when the nbmariadb.conf file port number
is updated with invalid username
Unable to connect to the ■ Configure the appropriate database user name
or port number.
database and port number in the nbmariadb.conf file
or provide the parameters from the
nbmariadbcommand line.
For more information, See “The
nbmariadb.conf configuration file” on page 15.
Troubleshooting for NetBackup for MariaDB 32
Troubleshooting errors when using NetBackup for MariaDB

Table 5-2 Troubleshooting NetBackup for MariaDB errors (continued)

Problems Description Solution

The nbmariadb backup fails The nbmariadb backup fails if To run a nbmariadb backup
with the following error: the environment variable path is
■ Update the environment variable path with
not updated with NetBackup bin
Unable to load xbsa.dll NetBackup_install_path/bin.
directory.

The nbmariadb backup fails The nbmariadb backup fails if To run the nbmariadb backup
with the following error: the nbmariadb.conf file is not
■ Configure the valid master server name, policy
updated with the required
XBSA initiation failed name, schedule type in the nbmariadb.conf
parameters.
file or from the command line.
■ Verify if there are communication errors
between the nbmariadb agent and the
NetBackup master server.
For more information see the NetBackup
Administration guide.

(Windows)VSS snapshot The nbmariadb backup may Run cmd.exe in Administrator mode.
creation failed fail when the user does not have
the privileges to run the
nbmariadb operations.

The nbmariadb restore The nbmariadb restore fails if For a successful restore
operation does not restore any the nbmariadb.conf file is not
■ Verify that the target directory is valid and
data from the target NetBackup updated with the NetBackup
empty.
client. client name and the target
■ Initiate the restore from the NetBackup source
directory.
client.
■ Set the NetBackup client name and target
directory parameters in the nbmariadb.conf
file.

The nbmariadb backup fails The nbmariadb backup may To verify the space in the volume group
with the following error: fail when the volume group does
1 To view the space in the volume, run the
not have sufficient space for the
(Linux) Error creating LVM following command:
snapshot.
snapshot
$vgs
To verify the space in the
volume group The command displays the volume group
details.

2 Update the nbmariadb.conf file with the


appropriate snapshot size. The snapshot
should be equivalent to or more than the
instance size.
Troubleshooting for NetBackup for MariaDB 33
Troubleshooting errors when using NetBackup for MariaDB

Table 5-2 Troubleshooting NetBackup for MariaDB errors (continued)

Problems Description Solution

Error messages after a The nbmariadb backup gives To remove the snapshots
successful backup: these errors when the volume
1 To list the existing snapshot, run the
group contains the snapshots.
<volume_group>/<snapshot_name> following command:
You can list the snapshots and
Read failure after 0 of 4096 at
then remove them before you $lvs
29393616896: input or output
run the backup again.
error. The command displays the snapshot details.
Note: The nbmariadb created
OR 2 To remove the snapshots, run the following
LVM snapshot names are
command:
<volume_group>/<snapshot_name>: prefixed with mariadbsnap
read failure after 0 of 4096 at $ lvremove -f
4096: input or output error. <volume_group>/<snapshot_name>

The nbmariadb backup fails You may encounter this problem Verify the following and then run the backup again:
with the following error: when the nbmariadb.conf file
■ Add or update the MariaDB library file location
is not updated with the following:
"Failed to load MariaDB Library" in the nbmariadb.conf file.
■ MariaDB library file location. For more information, See “The
■ The nbmariadb.conf configuration file” on page 15.
MARIADB_LIB_INSTALL_PATH ■ Ensure that the
does not point to MARIADB_LIB_INSTALL_PATHis set to the
libmariadb.so.<n> absolute path of the symbolic link.
■ (Linux) Create a symbolic link
libmariadb.so and ensure that it points to
the correct libmariadb.so.<n> library
version.
For more information, See “Post-installation
requirements for NetBackup for MariaDB
Agent” on page 11.
Troubleshooting for NetBackup for MariaDB 34
Troubleshooting errors when using NetBackup for MariaDB

Table 5-2 Troubleshooting NetBackup for MariaDB errors (continued)

Problems Description Solution

The nbmariadb backup on The nbmariadb backup fails To unmount the snapshot
Linux (LVM), fails with the during an attempt to unmount
1 To list all mounted file systems run the
following error: the snapshot, the device, or
following command:
when you remove the existing
Error unmounting the
snapshots. $ mount-l
snapshot-Device or resource
busy 2 If the snapshot still exists, create a mount
directory using the following command:
OR
$mount<mount_directory>
Error removing the
snapshot-mariadbsnap_<timestamp> Note: This directory is created in
/mnt/<snapshot_name>. The prefix
names for snapshot are pgsqlsnap.

3 To remove the mount directory run the


following command:

$rm -rf <mount_directory>

4 To remove the snapshot manually run the


following command:

1vremove -f
<volume_group>/<snapshot_name>

Even after a successful restore, The restore operation is ■ Verify that the MariaDB agent and NetBackup
the MariaDB services failed to successful, only when you are of same version for successful restore
start. restore the backup on a machine operations.
that has the same minor version ■ Verify that the MariaDB version from the
of MariaDB. backed up data is same as the MariaDB
version on the computer where you want to
For example, if you back up a
restore the data.
file from MariaDB version 10.2.x,
then you must restore the file to
a computer with MariaDB
version 10.2.x.
Troubleshooting for NetBackup for MariaDB 35
Troubleshooting errors when using NetBackup for MariaDB

Table 5-2 Troubleshooting NetBackup for MariaDB errors (continued)

Problems Description Solution

The nbmariadb.conf file is Starting from NetBackup 8.2, the If the nbmariadb.conf file does not exist, you
missing after installing the agent nbmariadb.conf file is not can create the file by running the backup utility
on RHEL or SUSE created by default when you command without any options. For example, run
install the agent on RHEL or the ./nbmariadb command. This command
SUSE. The existing creates the default nbmariadb.conf file.
configuration file is prevented
from getting overwritten as the
RPM installer simply overwrites
any existing files in the
destination directory
/usr/NBMariaDBAgent/.
Appendix A
About NetBackup for
MariaDB commands and
conventions
This appendix includes the following topics:

■ About NetBackup for MariaDB commands

■ About NetBackup for MariaDB command conventions

About NetBackup for MariaDB commands


This section describes the commands, options, and parameters that are available
to run the nbmariadb operations. Each command contains a brief description,
required parameters, and optional parameters for the respective operations. The
NetBackup for MariaDB Agent supports only those commands, options, and
parameters that are mentioned in this document.
Observe for the following:
■ You must provide the parameters in the nbmariadb.conf file or on the
nbmariadbcommand line.

■ The parameters that you provide on the command line takes precedence over
the nbmariadb.conf file.
■ Specify the operation type -o on the nbmariadb command line.
■ Specify the parameters and options for the respective operations on the
nbmariadb command line or in the nbmariadb.conf file.
About NetBackup for MariaDB commands and conventions 37
About NetBackup for MariaDB command conventions

The NetBackup for MariaDB command options


Table A-1 The nbmariadb command options

Options Description

-C Configures the NetBackup client name for redirected restores.

-h Displays the Help usage, when it is the only option on the nbmariadb
command line.

-id Configures the specified backup using the backup image name.

-l Configures the MariaDB library path.

-o Configures the operation type (backup, restore, query, and delete).

-P Configures the DataStore policy.

-portnum Configures the database server port number that identifies the MariaDB
instance on which the backup or restore is performed.

-s Configures the NetBackup schedule.

-S Configures the NetBackup master server.

-t Configures the target directory to restore the data.

-u Configures the database user name.

-z Configures the LVM snapshot size.

-b Configures the backup type as LVM or non-LVM.

About NetBackup for MariaDB command


conventions
This document uses the following conventions when describing commands that are
specific when running the operations for MariaDB database.
Run the following commands in the command line interface to see the results:
■ The -help command (-h) option prints a command-line usage message when
it is the only option on the command line. For example,

nbmariadb -h

■ Brackets [ ] indicate that the enclosed component of the command line is optional.
Other parameters are required.
About NetBackup for MariaDB commands and conventions 38
About NetBackup for MariaDB command conventions

■ Italics indicate that the information is user supplied. For example, you may
provide the policy name and the schedule name for a backup operation.

nbmariadb -o backup -S master_server_name -P policy_name -s schedule_name


Appendix B
NetBackup for MariaDB
commands
This appendix includes the following topics:

■ nbmariadb -o backup

■ nbmariadb -o restore

■ nbmariadb -o query

■ nbmariadb -o delete
NetBackup for MariaDB commands 40
nbmariadb -o backup

nbmariadb -o backup
nbmariadb -o backup – runs the backup operation from the NetBackup client.

SYNOPSIS
nbmariadb -o backup

-S master_server_name

-P policy_name

-s schedule_name

(Linux) -l mariadb_library_path

[(Linux) -b backup_type auto, lvm, and nonlvm]

(LVM) -z snapshot_size

[-portnum db_port]

[-u db_user]

Description
This command invokes the backup operation from the NetBackup client using the
NetBackup DataStore policy name and the schedule type. The parameter -S and
-P are required parameters for Windows. The parameters -l and (LVM) -z are
required parameters for Linux. The -portnum, -b, and -u are the optional
parameters.
On Linux systems, the directory path is /usr/NBMariaDBAgent/
On Windows, the directory path is install_path\NBMariaDBAgent\

Options
-l
(Linux) Configures the MariaDB library directory
-portnum
Configures the database port number that identifies the MariaDB instance on
which the backup is performed.
-P
Configures the NetBackup DataStore policy name.
NetBackup for MariaDB commands 41
nbmariadb -o backup

-S
Configures the NetBackup server name.
-s
Specifies the schedule name that you have configured for the DataStore policy.
-u
Configures the database user name.
-z
(LVM backups) Specifies the LVM snapshot size.
-b Configures the backup type as LVM or non-LVM.
NetBackup for MariaDB commands 42
nbmariadb -o restore

nbmariadb -o restore
nbmariadb -o restore – restores the backup files from the NetBackup server.

SYNOPSIS
nbmariadb -o restore -S master_server_name -t target_directory
-portnum db_port[-id db_backup_image_name] [-C client_name]

Description
The nbmariadb command restores the backup file using -t, -S, and (non-LVM)
portnum as the required parameters. The -id and -C are optional parameters.

On Linux systems, the directory path to this command is /usr/NBMariaDBAgent/


On Windows systems, the directory path to this command is
install_path\NBMariaDBAgent\

Options
-C
Specifies the client name.
-id
Specifies the backup image name.
-portnum
Specifies the database server port.
-S
Configures the NetBackup master server.
-t
Configures the target directory where the backups are restored.
NetBackup for MariaDB commands 43
nbmariadb -o query

nbmariadb -o query
nbmariadb -o query – query the backup.

SYNOPSIS
nbmariadb -o query -S master_server_name [-C client_name] [-P
policy_name]

Description
The nbmariadb -o query command gets the backup using -S as the required
parameter and -C and -P as optional parameters.
On Linux systems, the directory path to this command is /usr/NBMariaDBAgent/
On Windows systems, the directory path to this command is
install_path\NBMariaDBAgent\

Options
-C Retrieves and lists all the backups of the specified client.
-P Retrieves and lists all backups with the specified policy name.
-S Configures the NetBackup master server.
NetBackup for MariaDB commands 44
nbmariadb -o delete

nbmariadb -o delete
nbmariadb -o delete – deletes the backup information from the NetBackup catalog
files.

SYNOPSIS
nbmariadb -o delete -S master_server_name -id db_backup_image_name

Description
The nbmariadb -o delete command deletes the backup information from the
NetBackup catalog files, but retains the backups in the storage media.
The parameter -S and -id are the required parameters.

Options
-id
Specifies the backup using the backup image name.
-S
Configures the NetBackup master server.
Index

A M
authenticating password 13 MariaDB agent
backup 6
B features 6
redirected restore 6
backup
restore 6
associated files 21
MARIADB_LIB_INSTALL_PATH 15
backup information 21
MARIADB_TARGET_DIRECTORY 15
client name 21
delete 21
mariadb library path 21 N
mariadb library version 21 nbmariadb.conf file
master server 21 client 15
policy name 21 command line 15
query 21 configure 15
schedule name 21 default 15
snapshot size 21 location 15
symbolic link 21 parameters 15
validate 21 predefined settings 15
required parameters 15
C NBMARIADB_LOG_LEVEL 15
NBMARIADB_LOG_SIZE 15
CLIENT_NAME 15

D O
operating systems 10
DataStore policy 18
DB_BACKUP_ID 15
DB_PORT 15 P
DB_USER 15 package 7, 12
Default Application Backup 18 platform files 12
POLICY_NAME 15
F post installation requirements 11
prerequisites
features 7
installed 10
MariaDB database 10
I NetBackup 8.2 10
installation 9
installing 13
R
restore
L altnames directory 27
license 8 data directory 27
destination client 27
Index 46

restore (continued)
different client 27
different file path 27
different host 27
MariaDB services 27
ownership of data directory 27
parameters 27
portnum 27
target directory 27
restores
redirected 27
target directory 27

S
SCHEDULE_NAME 15
snapshot 7
SNAPSHOT_SIZE 15

U
uninstalling 14
user privileges 11

W
workflow 7

You might also like