NetBackup™ Commands Reference Guide

Last Published:
Product(s): NetBackup & Alta Data Protection (10.5)
  1. Introduction
    1.  
      About NetBackup commands
    2.  
      Navigating multiple menu levels
    3.  
      NetBackup command conventions
    4.  
      NetBackup Media Manager command notes
    5.  
      IPV6 updates
  2. Appendix A. NetBackup Commands
    1.  
      acsd
    2.  
      backupdbtrace
    3.  
      backuptrace
    4.  
      bmrc
    5.  
      bmrconfig
    6.  
      bmrepadm
    7.  
      bmrprep
    8.  
      bmrs
    9.  
      bmrsrtadm
    10.  
      bp
    11.  
      bparchive
    12.  
      bpbackup
    13.  
      bpbackupdb
    14.  
      bpcatarc
    15.  
      bpcatlist
    16.  
      bpcatres
    17.  
      bpcatrm
    18.  
      bpcd
    19.  
      bpchangeprimary
    20.  
      bpcleanrestore
    21.  
      bpclient
    22.  
      bpclimagelist
    23.  
      bpclntcmd
    24.  
      bpclusterutil
    25.  
      bpcompatd
    26.  
      bpconfig
    27.  
      bpdbjobs
    28.  
      bpdbm
    29.  
      bpdgclone
    30.  
      bpdown
    31.  
      bpduplicate
    32.  
      bperror
    33.  
      bpexpdate
    34.  
      bpfis
    35.  
      bpflist
    36.  
      bpgetconfig
    37.  
      bpgetdebuglog
    38.  
      bpimage
    39.  
      bpimagelist
    40.  
      bpimmedia
    41.  
      bpimport
    42.  
      bpinst
    43.  
      bpkeyfile
    44.  
      bpkeyutil
    45.  
      bplabel
    46.  
      bplist
    47.  
      bpmedia
    48.  
      bpmedialist
    49.  
      bpminlicense
    50.  
      bpnbat
    51.  
      bpnbaz
    52.  
      bppficorr
    53.  
      bpplcatdrinfo
    54.  
      bpplclients
    55.  
      bppldelete
    56.  
      bpplinclude
    57.  
      bpplinfo
    58.  
      bppllist
    59.  
      bpplsched
    60.  
      bpplschedrep
    61.  
      bpplschedwin
    62.  
      bppolicynew
    63.  
      bpps
    64.  
      bprd
    65.  
      bprecover
    66.  
      bprestore
    67.  
      bpretlevel
    68.  
      bpschedule
    69.  
      bpschedulerep
    70.  
      bpsetconfig
    71.  
      bpstsinfo
    72.  
      bpstuadd
    73.  
      bpstudel
    74.  
      bpstulist
    75.  
      bpsturep
    76.  
      bptestbpcd
    77.  
      bptestnetconn
    78.  
      bpup
    79.  
      bpverify
    80.  
      cat_convert
    81.  
      cat_export
    82.  
      cat_import
    83.  
      configureCerts
    84.  
      configureMQ
    85.  
      configureWebServerCerts
    86.  
      create_nbdb
    87.  
      csconfig cldinstance
    88.  
      csconfig cldprovider
    89.  
      csconfig meter
    90.  
      csconfig reinitialize
    91.  
      csconfig throttle
    92.  
      duplicatetrace
    93.  
      importtrace
    94.  
      jbpSA
    95.  
      jnbSA
    96.  
      ltid
    97.  
      mklogdir
    98.  
      msdpcldutil
    99.  
      nbauditreport
    100.  
      nbcallhomeproxyconfig
    101.  
      nbcatsync
    102.  
      NBCC
    103.  
      NBCCR
    104.  
      nbcertcmd
    105.  
      nbcertupdater
    106.  
      nbcldutil
    107.  
      nbcmdrun
    108.  
      nbcomponentupdate
    109.  
      nbcplogs
    110.  
      nbcredkeyutil
    111.  
      nbdb_admin
    112.  
      nbdb_backup
    113.  
      nbdb_move
    114.  
      nbdb_ping
    115.  
      nbdb_restore
    116.  
      nbdb_unload
    117.  
      nbdb2adutl
    118.  
      nbdbms_start_server
    119.  
      nbdbms_start_stop
    120.  
      nbdc
    121.  
      nbdecommission
    122.  
      nbdelete
    123.  
      nbdeployutil
    124.  
      nbdevconfig
    125.  
      nbdevquery
    126.  
      nbdiscover
    127.  
      nbdna
    128.  
      nbemm
    129.  
      nbemmcmd
    130.  
      nbepicfile
    131.  
      nbfindfile
    132.  
      nbfirescan
    133.  
      nbfp
    134.  
      nbftadm
    135.  
      nbftconfig
    136.  
      nbgetconfig
    137.  
      nbhba
    138.  
      nbholdutil
    139.  
      nbhostidentity
    140.  
      nbhostmgmt
    141.  
      nbhypervtool
    142.  
      nbidpcmd
    143.  
      nbimageshare
    144.  
      nbinstallcmd
    145.  
      nbjm
    146.  
      nbkmiputil
    147.  
      nbkmscmd
    148.  
      nbkmsutil
    149.  
      nblogparser
    150.  
      nbmariadb
    151.  
      nbmysql
    152.  
      nbmlb
    153.  
      nboraadm
    154.  
      nborair
    155.  
      nboracmd
    156.  
      nbpem
    157.  
      nbpemreq
    158.  
      nbmariadb
    159.  
      nbmlb
    160.  
      nbperfchk
    161.  
      nbpgsql
    162.  
      nbplupgrade
    163.  
      nbrb
    164.  
      nbrbutil
    165.  
      nbreplicate
    166.  
      nbrepo
    167.  
      nbrestorevm
    168.  
      nbseccmd
    169.  
      nbserviceusercmd
    170.  
      nbsetconfig
    171.  
      nbshvault
    172.  
      nbsmartdiag
    173.  
      nbsnapimport
    174.  
      nbsnapreplicate
    175.  
      nbsqladm
    176.  
      nbsqlcmd
    177.  
      nbsqlite
    178.  
      nbstl
    179.  
      nbstlutil
    180.  
      nbstop
    181.  
      nbsu
    182.  
      nbsvrgrp
    183.  
      netbackup_deployment_insights
    184.  
      resilient_clients
    185.  
      restoretrace
    186.  
      stopltid
    187.  
      tldd
    188.  
      tldcd
    189.  
      tpautoconf
    190.  
      tpclean
    191.  
      tpconfig
    192.  
      tpext
    193.  
      tpreq
    194.  
      tpunmount
    195.  
      verifytrace
    196.  
      vltadm
    197.  
      vltcontainers
    198.  
      vlteject
    199.  
      vltinject
    200.  
      vltoffsitemedia
    201.  
      vltopmenu
    202.  
      vltrun
    203.  
      vmadd
    204.  
      vmchange
    205.  
      vmcheckxxx
    206.  
      vmd
    207.  
      vmdelete
    208.  
      vmoprcmd
    209.  
      vmphyinv
    210.  
      vmpool
    211.  
      vmquery
    212.  
      vmrule
    213.  
      vmupdate
    214.  
      vnetd
    215.  
      vssat
    216.  
      vwcp_manage
    217.  
      vxlogcfg
    218.  
      vxlogmgr
    219.  
      vxlogview
    220.  
      W2KOption

Name

nbmysql — performs backup, query, restore, and delete operations for NetBackup MySQL clients.

SYNOPSIS

nbmysql -o backup -S primary_server_name -P policy_name -s schedule_name -l mysql_library_path -z lvm_snapshot_size [-C client_server_name] [-b backup_type] [-d backup_directory_path] [-dbname database_name] [-p mysql_server_port] [-u mysql_server_user] [-H mysql_server_host] [-instance mysql_instance_name] [-pgid provider_generated_id]

nbmysql -o query -S primary_server_name [-u mysql_server_user] [-P policy_name] [-C client_server_name] [-instance mysql_instance_name]

nbmysql -o restore -S primary_server_name -p mysql_server_port -t target_restore_directory [-u mysql_server_user] [-C client_server_name] [-H mysql_server_host] [-i backup_image_id]

nbmysql -o delete -S primary_server_name -i backup_image_id

On UNIX systems, the directory path to this command is /usr/openv/netbackup/bin

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

DESCRIPTION

Use the nbmysql command to backup, restore, query, and delete NetBackup MySQL client backups from the NetBackup client. The delete option removes the backup information from the NetBackup catalog files but retains the backups in the storage media.

OPTIONS

-b backup_type

Specifies the backup type to use for the backup operation. By default, the snapshot backup type is selected. Accepted values for -b are:

  • mysqldump: The MySQL utility performs the logical backup of the instance and databases. NetBackup performs streaming backups when the mysqldump type is specified. These backups change to non-streaming backups when the -d option is specified. This option is available for both UNIX and Windows systems.

  • vss: Snapshot backup type for Windows clients only.

  • lvm: Snapshot backup type for UNIX clients only.

-C client_server_name

Specifies the NetBackup client name. When you use this option with the -o query option, the operation retrieves and lists all backups from the specified NetBackup client.

-d backup_directory_path

Used to configure the backup directory path when you specify the -b mysqldump option. By specifying the -d option, the -b mysqldump backups are changed to non-streaming backups. Consistent backup files are generated in the backup directory path and are cleaned after the backup. Ensure that the directory path is empty. Any information in the specified directory is deleted.

-dbname database_name

Use this option with the -b mysqldump to specify the name of the database you want backed up. This option backs up an individual database.

-H mysql_server_host

Specifies the MySQL server host. The default value is localhost.

-i backup_image_id

Specifies the backup image ID. When you use this option with the -o delete operation, it specifies the backup image ID that is deleted from the NetBackup catalog. The backup image is not deleted.

-instance mysql_instance_name

Used to specify the MySQL server instance name. When you use this option with the -o query option, it retrieves and lists all backups of the specified instance name.

-l mysql_library_path

Specifies the MySQL library directory. This option is only available for UNIX clients.

-o operation_type

Specify the operation you want to perform. Valid operation types are:

  • backup: Used to backup MySQL instances and databases.

  • query: Used to query the NetBackup catalog for MySQL backups.

  • restore: Used to restore MySQL instances and database backups.

  • delete: Used to delete catalog information of MySQL backups.

-P policy_name

Used to specify the NetBackup DataStore policy name. When you use this option with the -o query option, the command retrieves and lists all backups with the specified policy name.

-p mysql_server_port

Specifies the MySQL instance port number that NetBackup uses for backup and restore operations. By default, the port number is 3306.

-pgid provider_generated_id

Configures the NetBackup provider-generated ID for the backup.

For a MySQL instance, the format of the -pgid must be in the form shown: MYSQL_INSTANCE_client_server_name_port.

For an individual MySQL database backup, the format of the -pgid must be in the form shown: MYSQL_DATABASE_database_name_client_server_name_port.

Follow this format to list the recovery points of backups in the NetBackup web UI.

-S primary_server_name

Specifies the NetBackup primary server name.

-s schedule_name

Specifies the schedule name that you have configured for the DataStore policy.

-t target_restore_directory

Configures the target directory where the backups are restored.

-u mysql_server_user

Specifies the name of the MySQL server user. The default user is root. When you use this option with the -o query option, this option retrieves and lists all backups for the specified user.

For UNIX computers, this parameter is an optional parameter for backup, restore, and query operations. The parameter is not available for the delete operation. For Windows computers, this parameter is optional for backup. The parameter is not available for restore, query, and delete operations.

-z lvm_snapshot_size

Configures the LVM snapshot size. This option is only available for UNIX clients.

EXAMPLES

Example 1: Perform a mysqldump non-streaming backup.

# nbmysql -o backup -S Primary_Server1 -P Policy1 -s Schedule1 -l 
/path/to/pgsql/lib -C Client_Server1 -b mysqldump -d /backup/dir/path 
-p 3306 -u root -H localhost -instance mysql-linux-3306 -pgid 
MYSQL_INSTANCE_Client_Server1_3306

Example 2: Perform a streaming backup of an individual database.

# nbmysql -o backup -S Primary_Server1 -P Policy1 -s Schedule1 -l 
/path/to/pgsql/lib -C Client_Server1 -b mysqldump -dbname Database_Name1 
-p 3306 -u root -H localhost -instance mysql-linux-3306 -pgid 
MYSQL_DATABASE_Database_Name1_Client_Server1_3306

Example 3: Perform a UNIX restore.

# nbmysql -o restore -S Primary_Server1 -p 3306 -t
/target/restore/directory -u root -C Client_Server1 -H localhost
-i 1768656897

Example 4: Perform a query for Windows.

nbmysql -o query -S Primary_Server1 -P Policy_Name1 -C 
Client_Server1 -instance mysql-linux-3306

SEE ALSO

See nbpgsql.

See nbsqlite.

See nbmariadb.