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. Veritas NetBackup™ for Microsoft SQL Server Administrator's Guide
  3. Performing restores of SQL Server
  4. Performing a SQL Server database move
Veritas NetBackup™ for Microsoft SQL Server Administrator's Guide

Performing a SQL Server database move

Note:

NetBackup only supports a database move of a backup with FileStream enabled if the backup is stream-based.

A database move lets you use a full set of backup images to copy an existing database to a location under a different name. Database move operations can only be carried out when your selection includes a database image. This move can occur either when you directly select the database backup image, or when NetBackup finds a recovery set that contains a database backup image.

To perform a database move

  1. Browse for the backup images you want to restore.

  2. Expand the database instance.
  3. Select the database backup image that you want to restore.
  4. From the Scripting list, select Create a move template.

    When you create a move script, the capability to perform an immediate launch is disabled. You must edit the script to specify certain destination parameters.

  5. Click Restore.
  6. Indicate a file name and click Save > Yes.
  7. Change the database name in the template to the name of the database to restore to.

    For example, replace:

    #  Replace the database name in the following line with the name of the database that you 
    #  want to move to. Also remove the hash mark <#> which precedes the keyword <DATABASE>.
    # 
    # DATABASE "DatabaseA"

    with:

    #  Replace the database name in the following line with the name of the database that you 
    #  want to move to. Also remove the hash mark <#> which precedes the keyword <DATABASE>.
    # 
    DATABASE "DatabaseB"
  8. Change the path for the database files that you want to restore.

    You must uncomment at least one file. For example, replace:

    #  Replace the file path <C:\Microsoft SQL Server\MSSQL.3\MSSQL\DATA\DBA_FG1_File1.ndf>
    #  with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>.
    #  The target of the MOVE keyword must be "DBA_FG1_File1". 
    MOVE  "DBA_FG1_File1"
    #TO  "C:\Microsoft SQL Server\MSSQL.3\MSSQL\DATA\DBA_FG1_File1.ndf"

    with:

    #  Replace the file path <C:\Microsoft SQL Server\MSSQL.3\MSSQL\DATA\DBA_FG1_File1.ndf>
    #  with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>.
    #  The target of the MOVE keyword must be "DBA_FG1_File1". 
    MOVE  "DBA_FG1_File1"
    TO  "C:\Microsoft SQL Server\MSSQL.3\MSSQL\DATA\DBB_FG1_File1.ndf"
  9. Change the database file path.

    For example, replace:

    #  Replace the file path <C:\Microsoft SQL Server\MSSQL.3\MSSQL\DATA\DatabaseA.mdf>
    #  with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>.
    #  The target of the MOVE keyword must be "DatabaseA". 
    MOVE  "DatabaseA"
    #TO  "C:\Microsoft SQL Server\MSSQL.3\MSSQL\DATA\DatabaseA.mdf"

    with:

    #  Replace the file path <C:\Microsoft SQL Server\MSSQL.3\MSSQL\DATA\DatabaseA.mdf>
    #  with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>.
    #  The target of the MOVE keyword must be "DatabaseA". 
    MOVE  "DatabaseA"
    TO  "C:\Microsoft SQL Server\MSSQL.3\MSSQL\DATA\DatabaseB.mdf"
  10. Make similar changes to the template for any differential backups or transaction log backups you want to move.
  11. When you finish modifying the template, save it.
  12. To run the restore, select File > Manage script files.
  13. Select the script that you created and click Start > Yes.

More Information

Browsing for SQL Server backup images

Feedback

Was this page helpful?
Previous

Restoring a SQL Server transaction log image without staging a full recovery

Next

About performing a SQL Server page-level restore

Feedback

Was this page helpful?