NetBackup™ for MySQL Administrator's Guide

Last Published:
Product(s): NetBackup & Alta Data Protection (10.5)
  1. Overview
    1.  
      Overview of NetBackup for MySQL
  2. Managing MySQL instances and databases
    1.  
      Quick configuration checklist to protect MySQL instances and databases
    2.  
      Configure MySQL instance
    3.  
      Add MySQL instance
    4.  
      Manage credentials for an instance
    5.  
      Discover MySQL databases
    6.  
      Remove MySQL instances
    7.  
      Change the autodiscovery frequency of MySQL assets
  3. Managing MySQL environment credentials
    1.  
      Add new MySQL credentials
    2.  
      Default MySQL Administrator
    3.  
      Validate credentials of MySQL instance
    4.  
      View the credential name that is applied to an asset
    5.  
      Edit or delete a named credential
  4. Protecting MySQL instances and databases
    1.  
      Things to know before you protect MySQL instances and databases
    2.  
      Protect MySQL instances and databases
    3.  
      Customize protection settings for the MySQL assets
    4.  
      Remove protection from MySQL instances
    5.  
      View the protection status of MySQL instance
  5. Restoring MySQL instances and databases
    1.  
      Things to know before you restore the MySQL instances and databases
    2.  
      About the pre-restore check
    3.  
      Restore a MySQL instance and database
    4.  
      Restore target options
    5.  
      Pre-restore checks for MySQL
    6.  
      Steps to perform recovery after restore operation
    7.  
      Limitations
  6. Troubleshooting MySQL operations
    1.  
      Troubleshooting tips for NetBackup for MySQL
    2.  
      Error during MySQL credential addition
    3.  
      Error during the MySQL instances and databases discovery phase
    4.  
      Error during the MySQL Protection Plan Creation
    5.  
      Error while subscribing protection plan to MySQL asset
    6.  
      Error while removing MySQL asset
    7.  
      Error while backup of MySQL asset
    8.  
      Error while restoring MySQL asset image
  7. API for MySQL instances and databases
    1.  
      Using APIs to manage, protect or restore MySQL

Restore a MySQL instance and database

You can restore a MySQL instance or database either to an original backup location or to an alternate location. You can choose to recover from the default copy of the instance or database. The default copy is also known as the primary copy.

To restore a MySQL instance

  1. On the left, click Workloads > MySQL.
  2. On the Instances tab, select the instance that you want to recover.
  3. Click Recover from the top bar.
  4. On the Recovery points tab, select the date with available backup.

    Note:

    In the calendar view, dates with available backups are indicated with a green dot.

  5. From the listed Backup images/ Recovery points, select the desired image or recovery point.

    Note:

    The backup images or recovery points are listed in rows with the respective backup timestamp.

  6. Click Actions > Perform complete instance recovery.
  7. Click the search icon in Host field, select the desired host and click Save.
    • If the recovery is to alternate an host, then select the corresponding valid credentials from the displayed list.

    For more information, See Restore target options.

  8. Select the appropriate instance directory path from one of the following options:
    • Restore everything to original location: Files are restored to the location where they were originally backed up from.

    • Restore everything to a different location: Files are restored to alternative location that you can specify. The folder structure of the restored data within the alternate location will be the same as that of the original data that is same folder and sub-folder setup.

      • Directory for restore - This is MySQL data directory. MySQL full backup data and binary logs would be restored to the specified path.

    For more information, See Restore target options.

  9. Click Next and follow the instructions prompted.
  10. On the Recovery source tab, review the storage details.
  11. Click Next.
  12. On the Recovery points tab, select the Restore or Restore and recovery option to perform instances and database restore and recovery:
    • Restore - Will restore the instances.

    • Restore and recovery - Will recover the instances.

    Note:

    For LVM and VSS if Restore and Recovery option is selected, then contents of target data directory would be deleted by recovery operation.

    Note:

    In the Restore and recovery option, the MySQL service must be up and running. If the service is stopped, the restore will fail. The data folder must be empty, to run the Restore option on the same path. If the folder is not empty, then, the data will not restored.

  13. Click Next.
  14. On the Review tab, review the details and click Start recovery.

    Note:

    In case of recovery, a backup of the configuration file /etc/my.cnf with name /etc/backup.cnf is created.

To restore a MySQL database

  1. On the left, click Workloads > MySQL.
  2. On the Databases tab, select the database that you want to recover.
  3. Click Recover from the top bar.
  4. On the Recovery points tab, select the date with available backup.

    Note:

    In the calendar view, dates with available backups are indicated with a green dot.

  5. From the listed Backup images/ Recovery points, select the desired image or recovery point.

    Note:

    The backup images or recovery points are listed in rows with the respective backup timestamp.

  6. Click Actions > Perform complete database recovery.
  7. Click the search icon in Host field, select the desired host and click Save.
    • If the recovery is to alternate an host, then select the corresponding valid credentials from the displayed list.

    For more information, See Restore target options.

  8. Select the appropriate Database directory paths from one of the following options:
    • Restore everything to original location: Files are restored to the location where they were originally backed up from.

    • Restore everything to a different location: Files are restored to alternative location that you can specify. The folder structure of the restored data within the alternate location will be the same as that of the original data that is same folder and sub-folder setup.

      • Directory for restore - This is MySQL data directory. MySQL full backup data and binary logs would be restored to the specified path.

    For more information, See Restore target options.

  9. Click Next and follow the instructions prompted.
  10. On the Recovery source tab, review the storage details.
  11. Click Next.
  12. On the Recovery points tab, select the Restore or Restore and recovery option to perform instances and database restore and recovery:
    • Restore - Will restore the database.

    • Restore and recovery - Will recover the database.

  13. Click Next.
  14. On the Review tab, review the details and click Start recovery.