tar commands for a DLT Tape
807559Jun 16 2004 — edited Jun 16 2004Hi 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