Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

tar commands for a DLT Tape

807559Jun 16 2004 — edited Jun 16 2004
Hi All,

Was wondering if anyone can help with the following issue�

On the DLT (tar file) there is a lot of data that I don't want to extract (O/S space restrictions)�however I can't seem to extract specific dir's etc from the tape.

What I've tried so far...

tar tv - reads the tape no problem (lists to the screen)
tar xv - extracts data from the tape no problem (lists to the screen what is being extratced)

I can use the following command on a tar file on the O/S to extract a dir called phil without any problems�

tar xvf xxx.tar `tar tvf xxx.tar |grep 'phil'` - extracts the 'phil' dir from xxx.tar file

eg....the tar file contains

paul.tar
text.txt
paul2 (sub dir)
test2.txt
phil (sub dir of paul2)
philxx


But when I try the same syntax on the tape drive rather than a specific file, I don't seem to get any output?

tar xv `tar tv |grep 'iman'`

Does anyone know if this can be done from a tape drive and if it can then what syntax should I use?

Thanks in advance for any help

Paul
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 14 2004
Added on Jun 16 2004
2 comments
187 views