Restore SQL Server database
You can restore SQL Server database either to the original location or to the alternate location.
Single File Restore (SFR), Recovery of log backups, and reseed of availability groups are not supported. |
-
In BlueXP UI, click Protection > Backup and recovery > Applications.
-
In the Filter By field, select the filter Type and from the drop-down select SQL.
-
Click View Details to view all the available backups.
-
Select the backup and click Restore.
-
In the Restore options page, specify the location where you want to restore the database files.
If you… Do this… Want to restore to the original location
-
Select Restore to original location.
-
If the snapshot is in archival storage, select the priority to restore your data from the archival storage.
-
Click Next.
Want to temporarily restore to another storage and then copy the restored files to the original location
-
Select Restore to original location.
-
If the snapshot is in archival storage, select the priority to restore your data from the archival storage.
-
Select Change storage location.
If you select Change storage location, you can append a suffix to the destination volume. If you have not selected the checkbox, then by default _restore is appended to the destination volume.
-
Click Next.
-
In the Storage mapping page, specify the alternate storage location details where the data restored from the object store will be stored temporarily.
-
Click Next.
Want to restore to an alternate location
-
Select Restore to alternate location.
-
If the snapshot is in archival storage, select the priority to restore your data from the archival storage.
-
Click Next.
-
In the Destination host page, select a host name, provide a database name (optional), select an instance, and specify the restore paths.
The file extension provided in the alternate path must be same as the file extension of the original database file. -
Click Next.
Want to temporarily restore to another storage and then copy the restored files to the alternate location
-
Select Restore to alternate location.
-
If the snapshot is in archival storage, select the priority to restore your data from the archival storage.
-
Select Change storage location.
If you select Change storage location, you can append a suffix to the destination volume. If you have not selected the checkbox, then by default _restore is appended to the destination volume.
-
Click Next.
-
In the Storage mapping page, specify the alternate storage location details where the data restored from the object store will be stored temporarily.
-
Click Next.
-
In the Destination host page, select a host name, provide a database name (optional), select an instance, and specify the restore paths.
The file extension provided in the alternate path must be same as the file extension of the original database file. -
Click Next.
-
-
In the Pre-operations select, select one of the following options:
-
Select Overwrite the database with same name during restore to restore the database with the same name.
-
Select Retain SQL database replication settings to restore the database and retain the existing replication settings.
-
-
In the Post-operations section, to specify the database state for restoring additional transactional logs, select one of the following options:
-
Select Operational, but unavailable if you are restoring all of the necessary backups now.
This is the default behavior, which leaves the database ready for use by rolling back the uncommitted transactions. You cannot restore additional transaction logs until you create a backup.
-
Select Non-operational, but available to leave the database non-operational without rolling back the uncommitted transactions.
Additional transaction logs can be restored. You cannot use the database until it is recovered.
-
Select Read-only mode, and available to leave the database in read-only mode.
This option undoes uncommitted transactions, but saves the undone actions in a standby file so that recovery effects can be reverted.
If the Undo directory option is enabled, more transaction logs are restored. If the restore operation for the transaction log is unsuccessful, the changes can be rolled back. The SQL Server documentation contains more information.
-
-
Click Next.
-
Review the details and click Restore.
If the restore operation does not complete, do not try the restore process again until the Job Monitor shows that the restore operation has failed. If you try the restore process again before the Job Monitor shows that the restore operation has failed, the restore operation will fail again. When you see the Job Monitor status as "Failed," you can try the restore process again. |