View Source

{info:title=Tip}As an alternative to using the Databases Add-on, you can restore a database's MDF and LDF files using the File Restore function, and then issuing an "Attach Database" query.{info}

You can restore an MS SQL Server database or databases to an alternate location by following the instructions listed below in your Server Backup Manager.


{info:title=Note}
MySQL database tables can be restored simultaneously; this is implemented by using multiple threads.
{info}

1. In the Main Menu, click *Protected Machines*. On the _Protected Machines_ screen, click the _Actions_ icon for a corresponding protected machine and select *Open Recovery Points*.

The _Recovery Points_ window displays.

2. In the _Recovery Points_ window, find the recovery point containing the necessary database replication, click the corresponding _Actions_ icon, and select *Browse Databases*.

The _Browse Databases_ window displays.

3. Select a database instance from the drop-down menu.

!Browse Databases window_Instance outlined_English.png!

4. You can browse the instance by clicking the "+" icon.

!Browse Databases window_plus sign_English.png!

5. Select the database you want to restore, and click "Restore Selected".

!Browse Databases window_1 DB checked_Restore Selected button_English.png!

{note:title=Notice}
The system databases {{master}}, {{msdb}}, {{model}}, and {{tempdb}} are not displayed in the "Restore Databases" wizard. To restore these databases, use the [Perform a bare-metal restore|ServerBackup:Perform a bare-metal restore] function.{note}

{info:title=Tip}To be able to restore an alternate database, do not check the "Databases" box. Instead, select the desired databases by clicking the check-box next to each database you want to restore. See also: [CDP:MS SQL Server Restore with Alternate Name].{info}

6. In the displayed "Restore Databases" wizard window, define the options for the restore.
* *Restore to Original Host* \- If you select this option, the restore will be made to the Server where the source database was located. If the database exists, it can be overwritten.
* *Restore to Alternate Agent* \- Select a destination Server that is in the system. Specify the database host and port.

In our example, we select the "Restore to Alternate Agent" option to connect to the selected Server's host name and the specified port.


Click "Next" to proceed to the following step.


!849.png!

7. On the "Alternate DB Names" screen, you may *optionally* define an alternate database name for any of the selected databases for restore as a new step in the "Restore Databases" wizard. If a database with the new name already exists, that restore will fail and will alert the Policy.

!Restore Databases window_Alternate DB Name_English.png!

Click the "Settings" button to specify an Alternate Settings.

!Restore Databases window_Alternate DB Name_Settings button_shortened_English.png!

{info:title=Note}

The "Settings" button is not available if you previously checked the "Databases" check-box. In this case click the "Next" button and go to the [8 paragraph|#summary] below.

!Browse Databases window_All DB checked_English.png!
{info}

The "Alternative Settings" window will be opened.

!Alternate Settings window_English.png!

In the "Alternative Settings" window specify the following options:

* {color:#35383d}{*}Use Alternative Settings{*}{color}{color:#35383d} \- check this check-box to enable an Alternate Settings.{color}

          !Alternate Settings window_Use Alternate Settings checked_shortened_English.png!

{info:title=Note}
Once the "Use Alternative Settings" option has been checked, the Alternative Database Name and Paths should be obligatory entered. Otherwise the warning message will appear.
{info}

* {color:#35383d}{*}Alternative Database Name{*}{color}{color:#35383d} \- enter a different name for a database you want to restore.{color}

          !Alternate Settings window_Alternate DB name entered_shortened_English.png!



{info:title=Note}
Do not provide extension for a database name.
{info}

* {color:#35383d}{*}Alternate Database Paths{*}{color}{color:#35383d} \- enter a different location for a database you want to restore.{color}

          !Alternate Settings window_Alternate Paths entered_shortened_English.png!

{info:title=Note}
Make sure the existent and absolute Paths has been entered. Otherwise the warning message will appear.
{info}

{info:title=Tip}
When performing an MS SQL Server restore to an alternate directory, the directory must already exist. Create an alternate restore directory before restoring the MS SQL Server to it.
Read more in [CDP:MS SQL Server Restore to Alternate Location].{info}
Once the "Alternate Settings" has been specified, the special green mark will appear in the "Use Alternate Settings" column.

!Restore Databases window_Alternate DB Name_Alternate Settings specified_shortened_English.png!

Click "Next" to proceed to the following step.

!Restore Databases window_Next button_English.png!

{anchor:summary}
8. On the last "Summary" screen, the settings you have selected are displayed.

!851.png!

9. Once you have verified that the specified settings are correct, click "Restore." The restore process will start immediately.

!852.png!

10. The "Details for Database Restore" window will appear. It indicates that the restore process has been launched. You can watch the progress in real time.

!853.png!



{excerpt:hidden=true}Instructions on how to restore an MS SQL Server database to an alternate location with Server Backup Manager.{excerpt}