Veritas NetBackup™ for Microsoft SQL Server Administrator's Guide
- Introducing NetBackup for SQL Server
- Installation and host configuration
- Host configuration and job settings
- Managing SQL Server objects for use with SQL Server Intelligent Policies
- About discovery of SQL Server objects
- About registering SQL Server instances and availability replicas
- Registering instances or availability replicas with an instance group
- Configuring backups with SQL Server Intelligent Policy
- About tuning parameters for SQL Server backups
- Performing restores of SQL Server
- Redirecting a SQL Server database to a different host
- Protecting SQL Server data with VMware backups
- About protecting an application database with VMware backups
- Configuring backups with Snapshot Client
- Using copy-only snapshot backups to affect how differentials are based
- About SQL Server agent grouped backups (legacy SQL Server policies)
- Protecting SQL Server availability groups
- Protecting SQL Server availability groups with intelligent policies
- Protecting SQL Server availibility groups with legacy policies
- About protecting the preferred replica in a SQL Server availability group (legacy backup policies)
- About protecting a specific node in a SQL Server availability group (legacy backup policies)
- About protecting the preferred replica in a SQL Server availability group (legacy backup policies)
- Protecting SQL Server in a cluster environment
- Configuring backups with legacy SQL Server policies using clients and batch files
- About using batch files with NetBackup for SQL Server
- About schedule properties
- Performing user-directed backups of SQL Server databases
- Performing user-directed backups of read-only filegroups
- Using NetBackup for SQL Server with multiple NICs
- Performance and troubleshooting
- About debug logging for SQL Server troubleshooting
- About disaster recovery of SQL Server
- Appendix A. Other configurations
- About SQL Server backups and restores in an SAP environment
- Appendix B. Register authorized locations
Creating a batch file
You can use any of the backup or restore dialog boxes to create a batch file that contains a NetBackup for SQL Server script. This script can be executed at a later time from the Manage Scripts dialog box.
Or you can launch the script from the dbbackex command line program or through the NetBackup scheduler. See the example batch files.
NetBackup for SQL Server sample batch files
To create a batch file
- Select File > Backup SQL Server objects or File > Restore SQL Server objects.
- Select the object you want to back up or restore.
- Select the backup or restore options.
- In the Backup script or Restore script group, click Save.
- Click Backup or Restore.
- Specify the following folder for the batch file:
install_path\NetBackup\DbExt\MsSql\
folder.Batch files must reside on the host from which they executed. If you perform actions on a remote host, the batch file must reside on that remote host.
See Registering authorized locations used by a NetBackup database script-based policy.
- Give the file a unique name with the extension .bch.
- Click Save.
Alternatively, you can select the name of an existing file and NetBackup appends the new script to it.
- Click Yes to open and edit the batch file.