Restoring Individual Filesets

Use the bak restoreft command to restore one or more individual filesets. The following table summarizes the options available with the command. Unless indicated as Optional in the table, each option is required.


Options Available with the bak restoreft Command

Option Specifies Additional Information
-server The File Server machine to which to restore each fileset The specified machine can be a fileset's current site or a different site.
-aggregate The aggregate to which to restore each fileset The specified aggregate can be a fileset's current site or a different site.
-fileset Each fileset to be restored Specify the name of the read/write version of each fileset to be restored, even if you dumped the .backup version of a fileset.
-extension
(Optional)
An extension to add to the name of each restored fileset Specify an extension to preserve filesets in the file system that have the same names as those to be restored. If you want a period to separate the extension from each name, specify the period as the first character of the extension (for example, .restored).
-date
(Optional)
The date and, optionally, the time to use for a date-specific restore Only dump sets of the indicated filesets dated before the specified date are restored. Omit this option to perform a full restore of the most-recently dumped version of each fileset. Specify mm/dd/yy to indicate 00:00 (12:00 a.m.) on day mm/dd/yy; specify "mm/dd/yy hh:mm" to indicate time hh:mm on day mm/dd/yy. A time must be in 24-hour format (for example, 20:30 for 8:30 p.m.
To restore all of the filesets on an aggregate, do the following:

1. If it is not already running, start the Tape Coordinator for the tape drive that you want to use with the operation. (See Starting a Tape Coordinator for information on using the butc command to start a Tape Coordinator.)

2. Verify that you are included in the appropriate administrative lists. If necessary, issue the bos lsadmin command to check.

3. Optional. At this point, you can issue the bak command at the system prompt to enter interactive mode. (See Using the Interactive Interface for the advantages of interactive mode.) The command in the following step assumes that regular command mode is used, not interactive mode.

4. Issue the bak restoreft command with the appropriate options:

$ bak restoreft -server machine -aggregate name -fileset name...
[-extension name_extension] [-date date] [-tcid tc_number] [-noaction]

The -server machine option names the File Server machine to which to restore each fileset. Specify the File Server machine using the machine's DCE pathname, the machine's host name, or the machine's IP address.

The -aggregate name option is the device name or aggregate name of the aggregate to which to restore each fileset.

The -fileset name option is the name of each fileset to be restored.

The -extension name_extension option is a new extension to be added to the name of each fileset when it is restored.

The -date date option specifies the date and, optionally, the time to use for a date-specific restore; only dumps performed prior to the specified date (and time) are included in the restore. There are two valid arguments:

mm/dd/yy
Causes a date-specific restore of dumps that were done before 00:00 (12:00 a.m.) on the indicated date.

mm/dd/yy hh:mm
Causes a date-specific restore of dumps that were done before the specified time on the indicated date. The time must be in 24-hour format (for example, 20:30 for 8:30 p.m.). Surround the entire argument with " " (double quotes) because it contains a space.

The -noaction option directs the command to display the list of tapes needed to complete the restore without performing the actual operation.