Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. NetBackup™ for Microsoft SQL Server Administrator's Guide
  3. Configuring batch-file based policies for SQL Server backups
  4. Requirements to use batch files with NetBackup for SQL Server
  5. Create a batch file
NetBackup™ for Microsoft SQL Server Administrator's Guide

Create 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.

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

  1. Open the NetBackup MS SQL Client.
  2. Select File > Backup SQL Server objects or File > Restore SQL Server objects.
  3. Select the object you want to back up or restore.
  4. Select the backup or restore options.

  5. In the Backup script or Restore script group, click Save.
  6. Click Backup or Restore.
  7. 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.

  8. Give the file a unique name with the extension .bch.
  9. Click Save.

    Alternatively, you can select the name of an existing file and NetBackup appends the new script to it.

  10. Click Yes to open and edit the batch file.

More Information

Options for SQL Server backup operations

Options for NetBackup for SQL Server restores

Feedback

Was this page helpful?
Previous

Keywords and values used in batch files

Next

Run batch files

Feedback

Was this page helpful?