Link to home
Start Free TrialLog in
Avatar of ranadhir
ranadhir

asked on

Extracting individual file from tape remotely

can someone provie the syntax to retrieve a file from a remote tape drive using either dd or tar/rsh.I am using Solaris8.
Avatar of ranadhir
ranadhir

ASKER

I just need to extract an individual file from the zipped archive,and not the entire archive.
ASKER CERTIFIED SOLUTION
Avatar of mbekker
mbekker

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks a lot for the suggestion.Since the 'tar xvf' does not accept pattern matching - I am doing a
tar xvf /dev/rmt/0 `tar tf | grep '<pattern>'` on the machine to which the tape is attached.
Can this same command be fired with the rsh option from a remote machine(using pattern matching facility of tar)
It should work. The only problem I see is the rcp part, this should be changed in something like this:

rcp -p <hostname>:<path>/<pattern> <local_path>

So, without the <file_to_extract> part.