NetBackup™ for MariaDB Administrator's Guide
Performing MariaDB backups
Before you perform the backups, you must meet the following prerequisites:
(LVM users) Ensure that the MariaDB data directory and logs directory reside on the logical volume.
(Windows) Set the
NetBackup\bindirectory in the environment variable.For example,
Path =C:\Program Files\Veritas\Netbackup\binConfigure the DataStore policy from the .
(LVM) Verify that there is enough space for the snapshot in the volume group, and then set the snapshot size on 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.soand ensure that it points to the correctlibmariadb.so.<n>library version.Set the FLUSH and LOCK user privileges.
Verify the installing prerequisites and post-installation requirements.
For more information,
For more information, See Post-installation requirements for NetBackup.
To run the backup
- Run the following command:
nbmariadb -o backup
-S primary_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
- (Optional) When prompted, type the database password. The NetBackup then connects to the database and initiates the backup.
You can schedule the MariaDB backups from the using the DataStore policy to call a backup script.
For more information, https://www.veritas.com/support/en_US/article.100041621