• No results found

Data Protection for SQL Server GUI restore

In document Backing up Microsoft SQL Server (Page 159-162)

Chapter 5. Data Protection for SQL Server restore

5.2 Data Protection for SQL Server GUI restore

Using the Data Protection for SQL Server GUI you can perform full and partial restores of your databases. In a full restore you restore all files belonging to the database, while in a partial restore you choose to restore only individual files from the database.

If you plan to fully restore your database using full, log and differential backups, select Restore Database tab in the Data Protection GUI. If you plan to restore only parts of your database using full, file, group, set or log backups select the Restore Groups/Files tabs in the Data Protection GUI.

In next sections we discuss how to restore SQL Server databases using Data Protection for SQL Server GUI.

5.2.1 Perform full database restore

Perform the following steps to restore a SQL Server database using full, differential and log backups.

1. Start Data Protection for SQL Server GUI.

2. Click the Restore Database tab.

3. Check Show Active and Inactive if you want to display inactive backup objects in addition to active backup objects.

4. Click the plus sign in the tree view to the left of the SQL Server that you want to work with.

All SQL Servers backed up under the Tivoli Storage Manager nodename are displayed.

5. Click the plus sign in the tree view to show the names of databases backed up on the Tivoli Storage Manager server. All databases backed up under the Tivoli Storage

Manager nodename , even for databases that were already dropped from SQL Server but were not expired from Tivoli Storage Manager Server inventory.

6. Click the plus sign in the tree view to the left of the SQL Server that you want to restore from. The tree expands again and shows the databases available for restore processing.

Note: You can choose both Restore Database tab and Restore Groups/Files tab to fully restore your database from a full backup and apply subsequent transaction log files. The difference between them is that in Restore Groups/Files tab you have the option to choose individual files from the database full backup to be restored, while in Restore Database tab you will restore all files from your database.

7. Click the plus sign in the tree view to the left of the database that you want to restore. The database expands to show the types of backups available for restore.

8. Click the selection box in the tree view to the left of the full, differential, or transaction log backup that you want to restore.

9. Select the desired Restore Options for your backup.

10. Click Restore. The Restore Progress dialog appears.

11. Click OK. The restore is complete.

5.2.2 Perform partial restores

The steps required to restore a SQL Server file or filegroup using Data Protection for SQL Server GUI are similar to those required to fully restore a SQL Server database:

1. Start Data Protection for SQL Server GUI.

2. Click on Restore Groups/Files tab.

3. Check Show Active and Inactive if you want to display inactive backup objects in addition to active backup objects.

4. Click the plus sign in the tree view to the left of the SQL Server that you want to work with.

All SQL Servers backed up under the Tivoli Storage Manager nodename are displayed.

5. Click the plus sign in the tree view to show the names of databases backed up on the Tivoli Storage Manager server. All databases backed up under the Tivoli Storage Manager nodename are displayed, even for databases that were already dropped from SQL Server but were not expired from the Tivoli Storage Manager server inventory.

6. Click the plus sign in the tree view to the left of the SQL Server that you want to restore from. The tree expands again and shows the databases available for restore processing.

7. Click the plus sign in the tree view to the left of the database that you want to restore. The database expands to show the types of backups available for restore.

8. Select the desired Restore Options for your backup.

9. If you want to replace the existing database object with the file group or file you are about to restore, check the Replace box.

10.I If you want only the database owner to access the database after it has been restored, check the Database Owner Only box.

11. Click Restore.

12. The Restore Progress dialog appears.

13. Click OK. The restore is complete.

5.2.3 Restore options

You can specify how the restore operation will be performed using the Restore Options tab.

From either the Restore Databases tab or the Restore Groups/Files tab, you can select the following options.

򐂰 Show Active and Inactive

By checking this option, you can include inactive backup objects in the tree and list. This allows you to easily specify inactive objects for restore purposes. The default is to display only active objects.

You can specify the number of data stripes to use in a restore operation. A maximum of 64 data stripes is allowed. The default value is 1. Make sure that this matches the value set for SQL buffers. Note that this option is always enabled for Legacy operations. However, stripes are not available for VSS operations.

򐂰 Replace

You can replace a database during a restore by selecting the check box. The default is not to replace databases. This option is always enabled and applies to Legacy restores only.

򐂰 Recovery

If you select several objects for restore in the GUI (e.g. full, difffull, log, log) and leave this option selected, Data Protection for SQL will make sure that SQL administers the recovery option only on the last backup object for each database being restored. This option is selected by default, but you can clear this checkbox when needed.

򐂰 Database Owner Only

You can mark a database for owner use only after a restore by selecting the check box.

The default is not to mark for owner use. This option is always enabled and applies to Legacy restores only.

򐂰 Wait for Tape Mounts for Restore

You can specify whether or not the Data Protection for SQL restore operation waits for the Tivoli Storage Manager server to mount removable media such as tapes or CDs. This information is retrieved from Tivoli Storage Manager when you press the plus (+) icon on the backup object to expand the tree.

򐂰 Wait for Tape Mounts for File Information

When querying Tivoli Storage Manager for file information, you can specify whether or not Data Protection for SQL waits for the Tivoli Storage Manager server to mount removable media. This option is not selected by default and applies to Legacy restores only.

From the Restore Databases tab only, the following additional options are available:

򐂰 Point in Time

You can specify a point in time to which to restore a database if desired by clicking the Point in Time button. This button is enabled only when you select for restore a full backup object and at least one log backup.

– Point in Time Dialog

Clicking on the Point in Time button displays a dialog box with the following options:

• No point in time

• Stop at

• Stop at mark

• Stop before mark

The stop radio buttons allow you to specify a date and time. With Stop at mark and Stop before mark, you can name a mark for the restore and include the date and time to help locate the mark. To clear a point in time that is set, select the No point in time radio button. When point in time is in use, a static field is enabled to display the results of the action.

򐂰 Disable VSS Instant Restore

Selecting Disable VSS Instant Restore bypasses volume-level copy and uses file-level copy to restore the files from a local VSS Backup. If this option is not selected, volume level snapshot restore is used for local VSS Backups if the backup exists on volumes that support it. The default value is to use volume level snapshot restore if supported. This

option is available for VSS operations only. When performing VSS Instant Restores, you must make sure that any previous background copies (that involve the volumes being restored) are completed prior to initiating the VSS Instant Restore.

Shortcut Menu

You can display additional restore options by right-clicking a selected item in the list control.

This menu is available only when you highlight a database in the tree. All of its backup objects will be displayed in the list control, and the menu will be available for any selected objects.

The right-click pop-up menu contains the following items:

򐂰 Restore Into

Use this option to specify the database to restore a backup object to. Click Restore Into to display an edit box. If you have selected several databases to be restored, the restore into name you specify applies only to the selected backup object that you right-clicked. If other selected backups require the restore into parameter, you will have to specify them one at a time, but you can do this in one restore operation.

򐂰 Relocate

Use the Relocate dialogs to specify new destination locations in which to restore backed up SQL databases, logs, and SQL Server full-text index files:

– Relocate All Files Into a Directory

Select this option to restore the SQL datafiles, logs, and other related files into a location different from where the data was originally backed up.

• Relocate Log Files Into

Check this box to restore the log files into a location different from where the SQL database and other related files are being restored.

• Relocate Other Files Into

Check this box to restore SQL Server full-text index files into a location different from where the SQL database and logs are being restored.

– Relocate Files Individually

Select this option to restore each SQL database, log, and SQL Server full-text index file individually. This is available for Legacy backups only.

򐂰 Standby Server Undo File

Use this option to specify the undo file for a Legacy restore to a standby SQL

database. If the target SQL database is not already in standby mode, it will be placed in standby mode. This menu item appears only in the Restore Databases window and is available for full, differential, and log backup types, but only for one database at a time. Click this option to display an edit box for the undo file name. Once you specify this for a database, it applies to all backup objects for that database. Likewise, once you remove this option for a backup object, it is removed for all.

In document Backing up Microsoft SQL Server (Page 159-162)