Saturday, November 15, 2008

How to restore files interactively using ufsrestore in Solaris

First bring the tape to the beginning ->

mt rew

Now move the tape to proper position if required. The following command will move the tape 10 files forward.

mt fsf 10

set the tape in interactive,verbose mode using->

ufsrestore ivf prddb:/dev/rmt/0n

Now we can use "ls" and "cd" command to view what files and directories are there on the tape.
we can now use the add command to add the files for extraction.
add <directory/filename>
finally we give extract command to extract the files.
extract
Now it prompts to "Specify next volume #"
Here we can type the volume number and press Return. If you have only one volume, type 1 and press Return.

No comments: