It is easy to restore files to the wrong location. Because the ufsdump command always copies files with full path names relative to the root of the file system, you should usually change to the root directory of the file system before running the ufsrestore command. If you change to a lower-level directory, after you restore the files you will see a complete file tree created under that directory.
When you use the interactive command, a ufsrestore> prompt is displayed, as shown in this example:
# ufsrestore ivf /dev/rmt/0 Verify volume and initialize maps Media block size is 126 Dump date: Thu Aug 30 10:13:46 2003 Dumped from: the epoch Level 0 dump of /export/home on starbug:/dev/dsk/c0t0d0s7 Label: none Extract directories from tape Initialize symbol table. ufsrestore >
At the ufsrestore> prompt, you can use the commands listed on “UFS Backup and Restore Commands (Reference)” in System Administration Guide: Basic Administration to find files, create a list of files to be restored, and restore them.