Veritas NetBackup™ for Microsoft SQL Server Administrator's Guide

Last Published:
Product(s): NetBackup (9.0.0.1, 9.0)
  1. Introducing NetBackup for SQL Server
    1.  
      Overview of NetBackup for SQL Server
  2. Installation and host configuration
    1.  
      Planning the installation of NetBackup for SQL Server
  3. Host configuration and job settings
    1.  
      Configuring SQL Server hosts
    2.  
      Installing the Veritas VSS provider for vSphere
    3.  
      Configuring the NetBackup services for SQL Server backups and restores
    4.  
      Configure local security privileges for SQL Server
    5.  
      Reviewing the auto-discovered mappings in Host Management
    6.  
      Configuring mappings for restores of a distributed applications, clusters, or virtual machines
    7.  
      Configuring the number of jobs allowed for backup operations
    8.  
      Configuring the Maximum jobs per client setting
  4. Managing SQL Server objects for use with SQL Server Intelligent Policies
    1.  
      About the Applications utility
    2. About discovery of SQL Server objects
      1.  
        Discovering instances on demand
      2.  
        Discover advanced or basic availability groups on demand
      3.  
        Discover read-scale availability groups
    3. About registering SQL Server instances and availability group replicas
      1.  
        About credentials used with SQL Server Intelligent Policy
      2.  
        Registering a SQL Server instance or availability replica
      3. Registering instances or availability replicas with an instance group
        1.  
          Adding an instance or availability replica to an instance group
        2.  
          Validating instance group credentials
      4.  
        Registering instances or availability replicas automatically
      5.  
        Authorizing a DBA to register instances or availability replicas with the nbsqladm command
    4.  
      Deleting SQL Server objects from the Applications utility
    5.  
      Manually add a SQL Server instance
    6.  
      Deactivating or activating an instance
    7.  
      Cleaning up instances
  5. Configuring backups with SQL Server Intelligent Policy
    1.  
      About SQL Server Intelligent Policies
    2.  
      Creating a SQL Server Intelligent Policy
    3.  
      About policy attributes
    4.  
      About schedule properties
    5.  
      Schedule backup types for SQL Server Intelligent Policies
    6.  
      Adding instances to a policy
    7.  
      Adding databases to a policy
    8.  
      Adding filegroups or files to the backup selections list
    9.  
      Manually adding files or filegroups to the backup selections list
    10.  
      Adding instance groups to a backup policy
    11. About tuning parameters for SQL Server backups
      1.  
        Configuring multistriped backups of SQL Server
    12.  
      Backing up read-only filegroups
    13.  
      Backing up read-write filegroups
  6. Performing restores of SQL Server
    1.  
      Starting the NetBackup MS SQL Client for the first time
    2.  
      Selecting the SQL Server host and instance
    3.  
      Browsing for SQL Server backup images
    4.  
      Options for NetBackup for SQL Server restores
    5.  
      Restoring a SQL Server database backup
    6.  
      Staging a full SQL Server database recovery
    7.  
      Restoring SQL Server filegroup backups
    8.  
      Recovering a SQL Server database from read-write filegroup backups
    9.  
      Restoring SQL Server read-only filegroups
    10.  
      Restoring SQL Server database files
    11.  
      Restoring a SQL Server transaction log image without staging a full recovery
    12.  
      Performing a SQL Server database move
    13.  
      About performing a SQL Server page-level restore
    14.  
      Configuring permissions for redirected restores
    15. Redirecting a SQL Server database to a different host
      1.  
        About selecting a master server
    16.  
      Performing a restore of a remote SQL Server installation
    17.  
      Restoring multistreamed SQL Server backups
    18.  
      About using bplist to retrieve SQL Server backups
    19.  
      About NetBackup for SQL Server backup names
  7. Protecting SQL Server data with VMware backups
    1. About protecting an application database with VMware backups
      1.  
        Limitations of VMware application backups
    2.  
      About configuring NetBackup for VMware backups that protect SQL Server
    3.  
      Configuring a VMware backup policy to protect SQL Server
    4.  
      Configuring a VMware policy to protect SQL Server using Replication Director to manage snapshot replication
    5.  
      Restore SQL Server databases from a VMware backup
  8. Configuring backups with Snapshot Client
    1.  
      About NetBackup Snapshot Client for SQL Server
    2.  
      How SQL Server operations use Snapshot Client
    3.  
      Configuration requirements for SQL Server snapshot and Instant Recovery backups
    4.  
      Configuring a snapshot policy for SQL Server
    5.  
      Configuring a policy for Instant Recovery backups of SQL Server
    6. Using copy-only snapshot backups to affect how differentials are based
      1.  
        Creating a copy-only backup (legacy SQL Server policies)
      2.  
        Creating an Instant Recovery backup that is not copy-only (legacy SQL Server policies)
    7. About SQL Server agent grouped backups (legacy SQL Server policies)
      1.  
        Requirements for a grouped backup
      2.  
        Viewing the progress of a grouped backup
      3.  
        Restoring a database backed up in a group
  9. Protecting SQL Server availability groups
    1.  
      About protecting SQL Server availability groups
    2. Protecting SQL Server availability groups with intelligent policies
      1.  
        Prerequisites for protecting SQL Server availability groups
      2. Configuring a backup policy to protect a SQL Server availability group
        1.  
          Adding an availability group to a policy
        2.  
          Adding availability databases to a policy
        3.  
          Adding filegroups or files in an availability database to the backup selections list
    3. Protecting SQL Server availibility groups with legacy policies
      1. About protecting the preferred replica in a SQL Server availability group (legacy backup policies)
        1.  
          Prerequisites for protecting SQL Server availability groups
        2.  
          Configuring an automatic backup policy for the preferred or the primary replica of a SQL Server availability group
        3.  
          Creating batch files for the policy that protects the preferred or the primary replica
        4.  
          Adding the batch files to the policy that protects the preferred or the primary replica
      2. About protecting a specific node in a SQL Server availability group (legacy backup policies)
        1.  
          Configuring an automatic backup policy for a specific replica of a SQL Server availability group
        2.  
          Creating a batch file for the policy that protects a specific availability replica in an availability group
        3.  
          Adding the batch files to the policy that protects a specific replica in the availability group
    4.  
      Protect a SQL Server availability group that crosses NetBackup domains
    5.  
      Browsing for SQL Server availability group backup images
    6.  
      Restoring a SQL Server availability database to a secondary replica
    7.  
      Restoring a SQL Server availability database to the primary and the secondary replicas
    8.  
      Restoring an availability database when an availability group crosses NetBackup domains
  10. Protecting SQL Server in a cluster environment
    1.  
      Configuring backups of clustered SQL Server instances (SQL Server Intelligent Policy)
    2.  
      Configuring backups of clustered SQL Server instances (legacy SQL Server policies)
    3.  
      Performing a restore of a virtual SQL Server instance
  11. Configuring backups with legacy SQL Server policies using clients and batch files
    1.  
      About legacy SQL Server policies
    2.  
      About configuring backups with legacy SQL Server policies
    3.  
      Configuring the NetBackup services for SQL Server backups and restores (legacy SQL Server policies)
    4.  
      About SQL Server security with NetBackup legacy backup policies
    5. About using batch files with NetBackup for SQL Server
      1.  
        Keywords and values used in batch files
      2.  
        Creating a batch file
      3.  
        Running batch files
    6.  
      Adding a new SQL Server legacy policy
    7. About schedule properties
      1.  
        Legacy policy backup types
      2.  
        Converting differential backups to full backups
      3.  
        Configuring an application backup schedule
      4.  
        Example application backup schedule
      5.  
        Configuring automatic backup schedules
      6.  
        Example automatic backup schedule
    8.  
      Adding clients to a policy
    9.  
      Adding batch files to the backup selections list
    10.  
      Selecting the SQL Server host and instance
    11.  
      Options for SQL Server backup operations
    12.  
      About viewing the properties of the objects selected for backup
    13. Performing user-directed backups of SQL Server databases
      1.  
        Performing user-directed backups of SQL Server transaction logs
      2.  
        Performing user-directed backups of SQL Server database filegroups
      3. Performing user-directed backups of read-only filegroups
        1.  
          Viewing SQL Server read-only backup sets
      4.  
        Performing user-directed backups of read-write filegroups
      5.  
        Performing user-directed backups of SQL Server database files
      6.  
        Performing partial database backups
    14.  
      Performing a backup of a remote SQL Server installation
    15.  
      About file checkpointing with NetBackup for SQL Server
    16.  
      About automatic retry of unsuccessful SQL Server backups
  12. Using NetBackup for SQL Server with multiple NICs
    1.  
      About configuration of SQL Server backups with multiple NICs
    2.  
      Configuring the NetBackup client with the private interface name
    3.  
      Configuring backups of SQL Server when you have multiple NICs (SQL Server Intelligent Policies)
    4.  
      Configuring backups for SQL Server when you have multiple NICs (legacy SQL Server policies)
    5.  
      Performing restores of SQL Server when you have multiple NICs
    6.  
      Configuring backups of a SQL Server cluster when you have multiple NICs (SQL Server Intelligent Policies)
    7.  
      Configuring backups of a SQL Server cluster when you have multiple NICs (legacy SQL Server policies)
    8.  
      Creating a batch file for backups of a SQL Server cluster when you have multiple NICs (legacy SQL Server policies)
    9.  
      Performing restores of a SQL Server cluster when you have multiple NICs
  13. Performance and troubleshooting
    1.  
      What are the components of NetBackup for SQL Server?
    2.  
      How does NetBackup for SQL Server back up a database?
    3.  
      How does NetBackup for SQL Server recover a database?
    4.  
      Performing a manual backup
    5. About debug logging for SQL Server troubleshooting
      1.  
        Setting the debug level
      2.  
        Veritas VSS provider logs
    6.  
      About NetBackup for SQL Server performance factors
    7.  
      About monitoring NetBackup for SQL Server operations
    8.  
      Setting the maximum trace level for NetBackup for SQL Server
    9.  
      Troubleshooting credential validation
    10.  
      Reporting of unsuccessful filegroup or file backups
    11.  
      About minimizing timeout failures on large SQL Server database restores
    12.  
      Troubleshooting VMware backups and restores of SQL Server
    13.  
      Delays in completion of backup jobs
    14.  
      SQL Server log truncation failure during VMware backups of SQL Server
    15.  
      SQL Server restore fails when you restore a SQL Server compressed backup image as a single stripe or with multiple stripes
    16.  
      Incorrect backup images are displayed for availability group clusters
    17.  
      A restore of a SQL Server database fails with Status Code 5, or Error (-1), when the host name of the SQL Server or the SQL Server database name has trailing spaces
    18.  
      A move operation fails with Status Code 5, or Error (-1), when the SQL Server host name, the database name, or the database logical name has trailing spaces
    19.  
      Unable to discover or browse availability group replicas
    20. About disaster recovery of SQL Server
      1.  
        Preparing for disaster recovery of SQL Server
      2.  
        Recovering SQL Server databases after disaster recovery
  14. Appendix A. Other configurations
    1.  
      Configuring multiplexed backups of SQL Server
    2.  
      Restoring a multiplexed SQL Server backup
    3. About SQL Server backups and restores in an SAP environment
      1. Creating batch files for automatic backups in for SQL Server in an SAP environment
        1.  
          Creating a batch file for database backups
        2.  
          Creating a batch file for transaction log backups
      2.  
        Monitoring backups on SQL Server
      3. Restoring the R/3 database
        1.  
          About including differential backups in a restore operation
        2.  
          Restoring the R/3 database after a disk crash
        3.  
          Restoring the database backups and transaction log backups
      4.  
        About manual backups of SQL Server in an SAP environment
      5.  
        About policy configuration for SQL Server in an SAP environment
    4.  
      Configuring NetBackup to support database log-shipping
    5.  
      Backing up SQL Server in an environment with log shipping
  15. Appendix B. Register authorized locations
    1.  
      Registering authorized locations used by a NetBackup database script-based policy

Keywords and values used in batch files

Table: Keywords and values used in batch files describes the keywords and values that can be used in batch files.

Table: Keywords and values used in batch files

Keyword

Values

Required?

Default

Description

ALTCLIENT (Same as BROWSECLIENT)

string

no

none

Restores the images from a host other than the local host.

BACKUPMODEL

BACKUPMODEL_
CONVENTIONAL, 
BACKUPMODEL_ SNAPSHOT

no

BACKUPMODEL_CONVENTIONAL

Valid only for restore. Indicates whether the backup was originated from a snapshot method

BATCHSIZE

integer

no

1

Number of backup operations to start simultaneously, per database instance. Applies to all of the operations in the batch file. Must appear before the end of the first operation. Range is 1 - 32.

BLOCKSIZE

integer

no

0

Applicable for backup operations only. Block size is calculated as 512 bytes * 2BLOCKSIZE. Range is 0 - 7.

BROWSECLIENT (Same as ALTCLIENT)

string

no

none

Restores the images from a host other than the local host.

BUFFERS

See NUMBUFS.

CONSISTENCYCHECK

FULLINCLUDINGINDICES, FULLEXCLUDINGINDICES, PHYSICALCHECKONLY, CHECKCATALOG

no

none

Performs the specified consistency check after the restore has been completed.

CONVERTBACKUP

TRUE, FALSE

no

FALSE

If no previous full backup exists for the database or filegroup, then NetBackup converts the differential or log backup to a full backup.

This option also detects if a full recovery database was switched to the simple recovery model and back to the full recovery model. In this scenario, the log chain is broken and SQL Server requires a differential backup before a subsequent log backup can be created. If NetBackup detects this situation, the backup is converted to a differential database backup.

See Converting differential backups to full backups.

COPYONLY

TRUE, FALSE

no

See description

If TRUE, SQL Server creates an out-of-band backup so that it does not interfere with the normal backup sequence. The default value is FALSE except for full database Instant Recovery backups.

DATABASE

string

yes

none

Name of database. For backup operations, specify value $ALL to designate all databases (except for tempdb.)

DBMS

MSSQL

no

MSSQL

You can specify MSSQL only.

DSN

string

no

saved from GUI user session

ODBC data source name. Deprecated.

DUMPOPTION

INCREMENTAL

no

none

Specifies INCREMENTAL restoring from an incremental backup.

ENABLESERVICEBROKER

TRUE

no

none

Enables SQL Server Service Broker after a restore operation. To take effect, RECOVERED STATE must be set to RECOVERED. Include this keyword in each individual RESTORE operation.

ENDOPER

TRUE

yes

none

Terminates each operation that is specified in the batch file.

EXCLUDE

string

no

none

Name of a database to exclude when DATABASE $ALL is specified in a batch operation

EXCLUDE can be used in a batch file only if DATABASE $ALL is used.

GROUPSIZE

integer between 1 and 32

no

none

The number of databases that are snapped as a single SQL Server backup image.

(Legacy policies) For availability group backups, all databases in the grouped backup must be part of the availability group. NetBackup does not support any grouped snapshot backups that include both standard and availability databases.

(Intelligent Policies) NetBackup does not support grouped snapshot backups.

INHIBITALTBUFFER METHOD

TRUE, FALSE

no

FALSE

Tells NetBackup whether to consider the candidacy of alternate buffer method.

MAXRESTARTSETS

integer

no

none

Use MAXRESTARTSETS to enable file checkpointing. This parameter specifies the number of separate streams into which the backup request is sub-divided. Range is 2 - 32.

MAXTRANSFERSIZE

integer

no

0

Maximum transfer size is calculated as 64 kilobytes bytes * 2MAXTRANSFERSIZE. Range is 0 - 6.

MOVE

filegroup

no

none

Specifies a filegroup name. Used for the MOVE restore type. For any backups that were made with a SQL Server legacy policy, the PARTIAL restore type also applies.

NBIMAGE

string

yes*

none

Specifies a NetBackup image for the restore operations. See note for NBSERVER.

* Required for restore operations.

NBSCHED

string

no

none

If the NetBackup policy has several Application Backup Policy schedules, use NBSCHED to select amongst them.

NBSERVER

string

no

none

Specifies which master server to use for the backup or restore operation.

Note:

If NBSERVER is not specified in a batch file operation, the master server defaults to the name that is specified at HKEY_CURRENT_USER\Software\VERITAS\NetBackup\NetBackup for Microsoft SQL Server\DEFAULT_SQL_NB_MASTER_SERVER.

NUMBUFS

integer

no

1

Number of buffers per stripe. Range is 1 - 32.

NUMRETRIES

See NUMRESTARTS.

NUMRESTARTS

1-9

no

1

The number of times to retry a backup if RESTARTTYPE AUTO is specified. Use this keyword only once in the batch file and in the first operation of the batch file.

OBJECTNAME

string

yes*

none

Specifies a file or a filegroup name for file or for filegroup backups and restores,

* If OBJECTTYPE= FILE or FILEGROUP.

OBJECTTYPE

DATABASE, TRXLOG, FILEGROUP, FILE

no

DATABASE

Specifies the object you want to back up or restore, a database, transaction log, filegroup, or file.

OPERATION

BACKUP, RESTORE

no

BACKUP

Type of operation, either backup or restore.

PAGE

Page ID

no

none

Ignored for a restore if the backup was performed with SQL Server Intelligent Policy.

Specifies a page ID for a page restore operation.

PARTIAL

TRUE, FALSE

no

FALSE

Ignored for a restore if the backup was performed with SQL Server Intelligent Policy.

Specifies NetBackup perform a partial backup or restore.

PASSWORD

string

no

null

Password for logging into SQL Server. This keyword is ignored if you use integrated security.

PREFERREDREPLICA

NONE, PRIMARY, PREFERRED,SKIP, TRUE, FALSE

no

PRIMARY

For each operation in the batch file, include this keyword.

(All NetBackup versions) TRUE honors your SQL Server backup preferences. FALSE indicates there is no preference for the replica that is used for backup.

(NetBackup 8.2 and later clients)

NONE means the backup is performed on the specified instance. Use SKIP to ignore any availability databases on the instance. Use this value to protect only standard databases when the policy includes any instances that contain both standalone databases and availability databases.

PRIMARY and PREFERRED apply to availability replicas and to instances that have both standard and availability databases. PRIMARY means that the primary replica is used for backup. PREFERRED honors your SQL Server backup preferences. These preferences include the preferred replica, backup priority, and excluded replicas. Note that NetBackup initiates a backup job on each replica. The backup is skipped on any replica that isn't the intended backup source.

RECOVERED STATE

RECOVERED, STANDBY, NOTRECOVERED, TRUE, FALSE

no

RECOVERED

RECOVERED means that the database should be restored to the recovered state. NOTRECOVERED means that it should remain in the loading state following the restore. STANDBY means that the database should be restored to standby state. If STANDBY is used, then the STANDBYPATH keyword is also required. TRUE and FALSE, when used as values for RECOVEREDSTATE, are synonyms for RECOVERED and NOTRECOVERED.

RESTARTTYPE

AUTO, MANUAL

no

none

Available only for backups. Use AUTO to automatically retry backup of failed objects. Use MANUAL to create a batch file for backing up any of the objects that were not successfully backed up. Use this keyword only once in the batch file and in the first operation of the batch file.

RESTARTWAITSECONDS

integer number

no

60

The time to make a second attempt following a backup failure. Use this keyword only once in the batch file and in the first operation of the batch file.

RESTOREBEFOREMARK

string

no

none

Specify transaction log mark.

RESTOREBEFOREMARK AFTERTIME

string

no

none

Specify transaction log mark.

RESTOREOPTION

REPLACE

no

none

Tells NetBackup to use the SQL Server replace option on a restore.

RESTOREPAGES

TRUE, FALSE

no

FALSE

Ignored for a restore if the backup was performed with SQL Server Intelligent Policy.

Specifies that NetBackup perform a page restore operation.

RESTORETOMARK

string

no

none

Specify transaction log mark.

RESTORETOMARK AFTERTIME

string

no

none

Specify transaction log mark.

RESTORETYPE

FULL, PARTIAL, MOVE

no

FULL

Full = Full database restore, Move = Database move

RESTORETYPE is applicable only to RESTORE database operations. If MOVE is used, then the batch file should contain a series of one or more <MOVE><filegroup> and <TO><file path> sequences.

(SQL Server legacy policies only) Partial = Partial database restore.

If PARTIAL is used, the sequence for PARTIAL must specify all of the filegroups in the database whose backup image is referenced by the NBIMAGE keyword.

RETRYTYPE

   

See RESTARTTYPE.

RETRYWAITSECONDS

See RESTARTWAITSECONDS.

ROLLBACKVOLUME

TRUE, FALSE

no

FALSE

Tells NetBackup to do the recovery of an Instant Recovery backup using the volume rollback method.

SQLCOMPRESSION

TRUE, FALSE

no

FALSE

Uses SQL Server compression on the backup image. If you enable SQL Server compression, do not enable NetBackup compression.

SQLHOST

string

no

Name of SQL Server host.

If SQLHOST is not specified in a batch file operation, then the SQL Server host is obtained from HKEY_CURRENT_USER\Software\VERITAS\NetBackup\NetBackup for Microsoft SQL Server\DEFAULT_SQL_HOST. If the SQLINSTANCE keyword is not included, then the default SQL Server instance is assumed for the SQL Host.

SQLINSTANCE

string

no

Name of the SQL Server instance. Or for backup operations specify $ALL to designate all SQL Server instances including the default instance.

If SQLINSTANCE $ALL is used, then it must appear in the first operation of the batch file. Each operation in the batch file is performed for all SQL Server instances on the client where the batch file is executed. Also, it is not necessary to specify an SQLHOST or SQLINSTANCE on any subsequent operations.

STANDBYPATH

string

no

none

Specify a fully- qualified file path to use for the standby redo log.

STOPAFTER

datetime string

no

none

Specifies datetime for RESTORETOMARK options. The datetime string is formatted as YYYY/MMDDHH:MM:SS.

STOPAT

datetime string

no

none

Specifies the point-in-time recovery of a transaction log. The datetime string is formatted as YYYY/MMDDHH:MM:SS.

STORAGEIMAGE

string

no

none

Used for restoring a database that was backed up using a grouped Snapshot Client snapshot. STORAGEIMAGE identifies the image with which the physical files are associated.

STRIPES

integer

no

1

Number of stripes. Range is 1 - 32.

TO

file path

no

none

Specifies a filegroup destination path. Required for each MOVE keyword. Also must sequentially follow each MOVE entry. The value may be delimited with single quotes.

TRACELEVEL

MIN, MID, MAX

no

MIN

Trace level.

TRXOPTION

NOTRUNC, TAILLOG

no

none

SQL Server transaction log backup options.

If NOTRUNC is not selected, then the transaction log can be backed up and truncated. If TAILLOG is selected, the tail log is backed up and restored.

USERID

string

no

sa

User ID for logging into SQL Server. This keyword is ignored if you use integrated security.

VDITIMEOUTSECONDS

integer

no

300

Timeout interval for SQL Server Virtual Device Interface.

VERIFYONLY

TRUE, FALSE

no

FALSE

Tells SQL Server to verify a backup image but not to restore it.

VERIFYOPTION

NONE, STOPONERROR CONTINUEAFTERERROR

no

NONE

This option is only valid for the databases that have an active page. STOPONERROR performs verification and stops if a verification error occurs. CONTINUEAFTERERROR performs verification but continues if a verification error occurs.