You can perform two types of restore operations: a full restore and a date-specific restore. A full restore re-creates a fileset as it existed when it was last dumped, including data from the last full dump and any subsequent incremental dumps. A date-specific restore re-creates a fileset as it was when it was last dumped before an indicated date; it includes the last full dump and any incremental dumps done before the indicated date.
The bak restoredisk and bak restoreftfamily commands always perform full restores of every specified fileset. The bak restoreft command performs a full restore of each specified fileset by default, but, you can use the command's -date option to direct the command to perform a date-specific restore.
Using any of the three commands, you can restore data to the location that it currently occupies, in which case it overwrites the existing version of the data. Overwrite existing data as follows:
· To use the bak restoreft command to restore a fileset to its current location, specify the fileset's existing set with the -server and -aggregate options.
· To use the bak restoredisk command to restore all of the filesets on an aggregate to their current location, omit the -newserver and -newaggregate options from the command; the filesets are restored to the site at which they currently reside.
· To use the bak restorftfamily command to restore filesets to their current locations, use the -family option to specify the fileset families from which filesets are to be restored; the filesets are always restored to their current sites. You can also use the -file option of the command to specify a file that names the filesets to be restored and indicates the locations to which they are to be restored; to overwrite the filesets, simply specify their current sites as the locations to which they are to be restored.
Using any of the commands, you can also restore data to a different location, as follows.
· To use the bak restoreft command to restore a fileset to a different location, specify a new site with the command's -server and -aggregate options.
· To use the bak restoredisk command to restore all of the filesets on an aggregate to a different location, specify a new site with the -newserver option, the -newaggregate option, or both.
· To use the bak restoreftfamily command to restore filesets to a different location, use the command's -file option to specify a file that identifies new sites for the filesets to be restored.
If you plan to specify a new site for a restored fileset, you must remove the existing version of the fileset, if it exists, before restoring it. A restore operation fails if a version of a fileset to be restored still exists at a site other than the site to which the fileset is to be restored. If you are using the bak restoreft command or the bak restoreftfamily command with the -file option to restore individual filesets, you can use either the fts zap or fts delete command to remove the existing filesets. If you are using the bak restoredisk command to restore all of the filesets on an aggregate, you can use only the fts zap command to remove the existing filesets.
With the bak restoreft command, you can preserve the current contents of a fileset in the file system by restoring the data to a new fileset that has the same name as the existing fileset with the addition of a distinguishing extension. You can use the -extension option to specify an extension such as .restored to be added to the name of the restored fileset. A new FLDB entry is created for the fileset, and the fileset is assigned its own fileset ID number. You can restore the new fileset to the same site as the existing fileset or to a different site.
To restore a fileset that no longer exists in the file system and for which an entry no longer exists in the FLDB, use the bak restoreft command or use the bak restoreftfamily command with the -file option. A new FLDB entry is created for the fileset, and a fileset ID number is assigned to it. The bak restoredisk command examines the FLDB to determine the filesets to be restored, so you cannot use the command to restore filesets that no longer have entries in the FLDB. The same is true of the bak restorftfamily command when it is issued with the-family option.
The following topics provide detailed information about using the bak restoreft, bak restoredisk, and bak resotrftfamily commands.