Skip Headers

Oracle® Secure Backup Administrator's Guide Release 10.2 Part Number E05407-02 |
Home | Book List | Contents | Index | Contact Us

Previous | Next
| View PDF

# 6 Restoring File System Data

This chapter explains how to restore file system objects backed up by Oracle Secure Backup.

This chapter contains these sections:

- About File System Restore Operations

- Performing a Catalog-Based Restore Operation

- Performing a Raw Restore Operation

See Also:

- "About Recovery Manager and Oracle Secure Backup"

- Chapter 11, "Oracle Secure Backup Catalog Recovery"

- Oracle Secure Backup Reference for a description of the restore commands in obtool

## About File System Restore Operations

With Oracle Secure Backup, you can restore file system data in the following ways:

- Catalog-based restore operation

  In this type of restore operation, you browse the Oracle Secure Backup catalog for the file system objects to be restored. When you have located their names and selected the instances, you can restore the objects.

  See Also:

  "Backup Catalog" for an overview of the Oracle Secure Backup catalog

- Raw restore operation

  In this type of restore operation, you identify the backup from which to restore files using the secondary storage location (volume ID and backup image file number) of a backup. A raw restore operation can be performed without using the backup catalog. You can either restore all data in the backup or specify an individual file or directory to restore.

  See Also:

  "Volumes" for an explanation of volume IDs and backup images

- obtar restore operation

  You can use the obtar command-line interface to operate directly on a tape drive, outside the Oracle Secure Backup scheduler. The obtar utility is intended for advanced users only.

  See Also:

  Oracle Secure Backup Reference for more information on obtar

The sequence of steps is basically the same for both catalog-based and raw restore operations. Create a file system restore job as follows:

1. Log in to the administrative domain as `admin` or an Oracle Secure Backup user with the rights needed to browse and restore files. You need the following rights:

   - If you want to restore files in privileged mode or restore to an Network Data Management Protocol (NDMP) host, then you need the `perform` `restores` `as` `privileged` `user` right.

   - If you want to restore files in unprivileged mode, then you need the `perform` `restores` `as` `self` right.

   - If you want to browse the catalog, then you need the `browse` `backup` `catalogs` `with` `this` `access` right set to a value other than `none`.

     The possible access values are `privileged`, `notdenied`, `permitted`, `named`, and `none`.

   See Also:

   Oracle Secure Backup Reference for more information on Oracle Secure Backup rights

2. Identify the backups that you want to restore.

   For a catalog-based restore, locate the files in the catalog.

   See Also:

   "Browsing the Backup Catalog"

   For a raw restore, identify the volumes and backup section file numbers from which to restore the backups.

   See Also:

   "Displaying Backup Sections"

3. Create one or more restore requests.

   See Also:

   - "Sending Catalog-Based Restore Requests to the Scheduler"

   - "Sending Raw Restore Requests to the Scheduler"

   Note:

   All restore requests that have not yet been sent to the scheduler persist until the background timeout expires. The background timeout value identifies the maximum idle time of certain obtool background processes. See Oracle Secure Backup Installation and Configuration Guide for more information on background timeout.

4. Delete the queued restore requests if necessary.

   See Also:

   - "Removing a Catalog-Based Restore Request"

   - "Removing a Raw Restore Request"

5. Send the restore requests to the Oracle Secure Backup scheduler so that the requests become jobs and are eligible to run.

   The Oracle Secure Backup scheduler runs the jobs according to their priority.

   See Also:

   - "Sending Catalog-Based Restore Requests to the Scheduler"

   - "Sending Raw Restore Requests to the Scheduler"

## Performing a Catalog-Based Restore Operation

This section describes how to create a restore request by browsing a backup catalog.

This section contains these topics:

- Displaying Backup Catalog Page

- Browsing the Backup Catalog

- Creating a Catalog-Based Restore Request

- Removing a Catalog-Based Restore Request

- Sending Catalog-Based Restore Requests to the Scheduler

- Listing All Backups of a Client

### Displaying Backup Catalog Page

In the Restore page, click Backup Catalog. The Restore: Backup Catalog page appears, as shown in Figure 6-1. You can use this page to browse the catalog for backups of files and directories.

Figure 6-1 Backup Catalog Page

Description of "Figure 6-1 Backup Catalog Page"

### Browsing the Backup Catalog

To browse the catalog and designate specific data to restore:

1. Perform the procedure in "Displaying Backup Catalog Page".

   The Restore: Backup Catalog page appears.

2. Select a host name from the Host Name list.

   The host should be the one on which the data was originally backed up.

3. Select one or more data selectors in the Data Selector list.

   See Also:

   "Catalog Data Selectors"

4. Select any of the following data selector options.

   - backup ID

     If you select this option, then you must also enter one or more comma-delimited backup IDs in the Backup ID field.

     See Also:

     "Listing All Backups of a Client" explains how to obtain a backup ID from the list of backups for this client

   - as of date

     If you select this option, then you must also enter a date, time, or both in the As of date field.

   - Select date range and enter the range in the Date range field.

     If you select this option, then you must also enter a range in the Date range field. For example, you could enter `2007/5/1-2007/5/31`.

5. Select a View mode.

   See Also:

   "Catalog View Modes" for a description of the inclusive and exact view modes

6. You can enter the path name of the directory to browse in the Path field. If you do not enter a path, then Oracle Secure Backup displays the top-most directory in the client naming hierarchy.

7. Click Browse Host.

   The Restore: Backup Catalog > host_name page appears with the selected directory contents displayed.

8. Click a directory name to make it your current directory and view its contents.

   You can repeat this operation until you find the data to be restored. The Oracle Secure Backup Web tool displays the contents of the selected directory, with the directory name in gray if you have visited it or in orange if you have not.

9. To change the data selector at any time without leaving this page:

   - Adjust the selections in the Data Selector list.

   - Update the Backup ID, As of date, or Date range fields if any apply.

   - Click Apply.

     The Restore: Backup Catalog page appears with the new data selector applied. If the view mode is inclusive, then it will look the same as the previous page. The instances of file system objects selected when you display properties, however, will reflect the new data selector setting.

10. To change the view mode without leaving this page:

    - Select either Inclusive or Exact view mode.

    - Click Apply.

      Oracle Secure Backup applies the new view mode and redisplays the page.

### Creating a Catalog-Based Restore Request

This section explains how to specify various restore options in order to finalize the restore request.

To create a catalog-based restore request:

1. Select the name of each file system object you want to restore.

   By performing this action, you are requesting that Oracle Secure Backup restore each instance of the object identified by the data selector. To learn the identity of those instances, click the adjacent properties button view to display the object's properties page. When you are done viewing the page, click Close.

2. Click Add.

   Note:

   You must click Add before leaving the page containing your selections. If you do not, then Oracle Secure Backup discards those selections.

   The New Restore page appears.

3. You can enter an alternate path name for each file or directory to restore.

   This step is optional.

   The original path name of each object you previously selected appears in the lower left portion of this page. To its right is a text box in which you can enter the alternate path name. If you leave this box blank, then Oracle Secure Backup restores the data to its original path.

   Caution:

   Some NAS data servers, including Network Appliance's Data ONTAP, limit your ability to rename restored data. If you try to violate that constraint, then the restore job fails.

4. You can select the Device option to specify a tape drive to use to perform the restore operation.

   This step is optional.

   By default, Oracle Secure Backup automatically selects the best tape drive.

5. Choose whether you want the restore to operate in unprivileged or privileged mode.

   An unprivileged restore runs under your UNIX user identity or Windows account identity, as configured in your Oracle Secure Backup user profile. Your access to file system data, therefore, is constrained by the rights of the UNIX user or Windows account having that identity. Unprivileged mode is the default.

   A privileged restore job runs under the `root` user identity on Linux and UNIX systems. On Windows systems, the job runs under the same account identity as the Oracle Secure Backup service on the Windows client.

   See Also:

   "Configuring Users"

6. You can enter one or more obtar options in the Obtar option(s) field.

   This step is optional.

   For example, `-J` enables debug output and provides a high level of detail in restore transcripts.

   See Also:

   Oracle Secure Backup Reference for a summary of obtar options

7. Select No high speed positioning if you do not want to use available position data to speed the restore.

8. Click NDMP incremental restore to direct Network Attached Storage (NAS) data servers to apply incremental restore rules. This option applies only to NAS data servers that implement this feature. This option does not apply to a file system backup created with obtar.

   Restore operations are usually additive. Each file and directory restored from a full backup or an incremental backup is added to its destination directory. If files have been added to a directory since the most recent Oracle Secure Backup backup, then a restore operation will not remove the newly added files.

   When you select NDMP incremental restore, NAS data servers restore each directory to its state in the last incremental backup image applied during the restore job. Files that were deleted prior to the last incremental backup are deleted by the NAS data service when restoring this incremental backup.

   For example, assume you make an incremental backup of /home, which contains file1 and file2. You delete file1 and make another incremental backup of /home. After an ordinary restore of /home, the directory would contain file1 and file2; after an NDMP incremental restore of /home, the directory would contain only file2.

9. Select one of the following:

   - Replace existing files

     This option overwrites any existing files with those restored from the backup image.

   - Keep existing files

     This option keeps any existing files instead of overwriting them with files from the backup image.

10. If you are restoring to a Windows system, then select one of the following:

    - Replace in use files

      This option replaces in-use files with those from the backup image. Windows deletes each in-use file when the last user closes it.

    - Keep in use files

      This option leaves any in-use Windows files unchanged.

11. Click OK.

    Oracle Secure Backup displays the Browse Host page. The restore request appears in the Restore items list. Oracle Secure Backup displays the message "Success: file(s) added to restore list" in the Status area.

12. To create additional catalog-based restore requests, return to "Browsing the Backup Catalog".

### Removing a Catalog-Based Restore Request

This section explains how to remove a catalog-based restore request that you have created, but have not yet sent to the scheduler.

To remove a catalog-based restore request:

1. In the Backup Catalog page, select a host from the Host Name list.

2. Click Browse Host.

   Oracle Secure Backup displays the Browse Host page.

3. In the Restore items list, select the restore request you want to remove.

4. Click Remove.

   Oracle Secure Backup redisplays the page. The restore request you selected no longer appears in the Restore items list.

### Sending Catalog-Based Restore Requests to the Scheduler

This section explains how to send all pending catalog-based restore requests to the scheduler.

To send catalog-based restore requests to the scheduler:

1. In the Backup Catalog page, select a host from the Host Name list.

2. Click Browse Host.

   Oracle Secure Backup displays the Browse Host page.

3. Click Go.

   The Oracle Secure Backup Web tool sends each restore request that appears in the Restore items list to the scheduler. A message appears in the Info bar for each request acknowledged by the scheduler. For example:

       1 catalog restore request item submitted; job id is admin/240.

   Oracle Secure Backup deletes each restore request upon its acceptance by the scheduler. As a result, the Restore items list is empty upon completion of the Go operation.

4. Display the transcript of the job to ensure that it completed successfully.

   See Also:

   "Displaying Job Transcripts"

### Listing All Backups of a Client

This section explains how to obtain a detailed listing of all backups of a client.

To list all backups of a client:

1. From the Backup Catalog page, select a host from the Host Name list box.

2. Click Browse Host.

   Oracle Secure Backup displays the Browse Host page.

3. Click List Host Backups.

   A properties page appears.

## Performing a Raw Restore Operation

This section explains how to restore data without using a backup catalog.

This section contains these topics:

- Displaying Directly From Media Page

- Creating a Raw Restore Request

- Removing a Raw Restore Request

- Sending Raw Restore Requests to the Scheduler

### Displaying Directly From Media Page

In the Restore page, click Directly from Media to display the page shown in Figure 6-2. You can use this page to perform a raw restore operation.

Figure 6-2 Directly From Media Page

Description of "Figure 6-2 Directly From Media Page"

See Also:

Oracle Secure Backup Reference to learn about the browser commands in obtool

### Creating a Raw Restore Request

To perform a raw restore of file system objects, you must know the following:

- The absolute path names of file system objects you want to restore

  You must know the path names for the files when they were backed up. If you do not know these path names, then you can use `obtar -tvf` to find them or restore an entire backup image.

- The identity of the tape volumes to which they were backed up

  This can be a volume ID or a barcode.

- The backup image file number in which they are stored

To create a raw restore request:

1. In the Directly from Media page, click Add.

   The Options page appears.

2. Select Device to specify a tape drive to use for the restore operation.

   This step is optional. By default, Oracle Secure Backup automatically selects the best tape drive.

3. Choose whether you want the restore to operate in unprivileged or privileged mode.

   Unprivileged mode is the default.

4. Enter the backup image file number from which to restore data in the File Number text field.

   See Also:

   "Volume Sets" to learn about file numbers

5. Do at least one of the following:

   - Enter the first volume ID from which to begin data restore in the Volume ID(s) field

     See Also:

     "Volume Sets" to learn about volume IDs

   - Enter the volume tag of the first volume from which to begin restoring in the Tag(s) text box.

     A tag is a computer-readable barcode affixed to a volume.

     See Also:

     "Volumes"

6. Enter one or more obtar options in the Obtar option(s) box.

   This step is optional.

   See Also:

   Oracle Secure Backup Reference for more information on obtar

7. Select NDMP incremental restore to direct certain Network Attached Storage (NAS) data servers to apply incremental restore rules.

   Restore operations are usually additive. Each file and directory restored from a full backup or an incremental backup is added to its destination directory. When you select NDMP incremental restore, NAS data servers that implement this feature restore each directory to its exact state as of the last incremental backup image applied during the restore job. Files that were deleted prior to the last incremental backup are deleted by the NAS data service upon restore of that incremental backup.

8. Select one of the following:

   - Replace existing files

     This option overwrites any existing files with those restored from the backup image.

   - Keep existing files

     This option keeps any existing files instead of overwriting them with files from the backup image.

9. If you are restoring to a Windows system, then select one of the following:

   - Replace in use files

     This option replaces in-use files with those from the backup image. Windows deletes each in-use file when the last user closes it.

   - Keep in use files

     This option leaves any in-use Windows files unchanged.

10. Select one of the following: All to

    - All

      This option restores the entire contents of the backup image file you selected.

    - File

      This option restores a specific file or directory. If you select File, then enter the name of the file or directory to restore in the text box to the right of the File option.

      If you know the position of the file in the backup image as reported previously by Oracle Secure Backup, then enter it in the Position field. If you do not, then leave this field blank.

11. Select a host to which to restore the data in the To host list.

12. Enter a path name in the Alternate path field if you want to restore data using a different name than the one that was saved.

    For example, assume that you want to restore the home directory for brhost2. The absolute path for the directory on the brhost2 file system was /export/home/brhost2. To restore to an alternate directory, enter the new path and the desired final directory name. For example, you could restore /export/home/brhost2 to /tmp/brhost2-restored.

    The same technique works for individual files. For example, you could restore /export/home/brhost2/.cshrc to /tmp/.cshrc-restored.

13. Click OK to accept your selections or Cancel to discard them.

    Oracle Secure Backup returns you to the Restore from Media page. If you clicked OK, then the raw restore request you just made appears in the list. Oracle Secure Backup displays the message, "Success: restore task created" in the Status area.

### Removing a Raw Restore Request

This section explains how to remove a raw restore request that you have created, but have not yet sent to the scheduler.

To remove a raw restore request:

1. In the Directly from Media page, select the request that you want to remove.

2. Click Remove.

   Oracle Secure Backup redisplays the page. The restore request that you selected no longer appears in the list.

### Sending Raw Restore Requests to the Scheduler

This section explains how to send all pending raw restore requests to the scheduler.

To send raw restore requests to the scheduler:

1. In the Directly from Media page, click Go.

   The Oracle Secure Backup Web tool sends each restore request that appears in the Restore from Media list box to the scheduler. A message appears in the status area for each request acknowledged by the scheduler. For example:

       raw restore request 1 submitted; job id is admin/7.

   Oracle Secure Backup deletes each restore request upon its acceptance by the scheduler. As a result, the Restore from Media list is empty upon completion of the Go operation.

2. Display the transcript of the job to ensure that it completed successfully.

   See Also:

   "Displaying Job Transcripts"