question about restoration from backup tape (solaris 10)

I am trying to restore opt on my server.

my issue is, all the partitions are saved into the same back up tape.

what is the exact command to just restore /opt for example, supposing c0t0d0s7 is the partition for /opt

---------- Post updated at 01:16 PM ---------- Previous update was at 01:15 PM ----------

i just learnt solaris, i work in a production environnement, I would definately appreciate a quick response.

Assuming you used ufsdump to take the backup,

rewind the tape and move to the file number of opt
e.g

mt -f /dev/rmt/0 rewind

if you hav taken /opt after some other mount point using the same tape, you hav to do the following:

mt -f /dev/rmt/0 fsf 1

ufsrestore rf /dev/rmt/0

and make sure you restore in single user mode

any specific reason for going single user??

Whenever I try to restore a root file system on multi-user mode, I get links error

1 question, how can I know the file number of /opt???

if you took the backup using "ufsdump", then use "ufsrestore -ivf" for interactive restore, where you can browse the contents

if you took the backup using "tar", use the "tvf" options to see the contents

u could hav a look at the /etc/dumpdates of your the server using which you took the backup.

or you can move one file forward and browse using fsf..