Nevermind!!! It seems I already knew the answer. -ronc On Sunday 12 August 2001 17:19, Ron Cordell wrote:
On that subject -
I have installed a SCSI tape drive and was wondering how to use tar to archive to the tape. I am not sure what to call the drive. I can issue mt commands to /dev/st0, such as
mt -f /dev/mt0 reten
and this works ok.
What do I use to actually write and read from the tape? /dev/tape is not a valid device, at least it is not listed in my /dev...
thanks,
-ronc
On Sunday 12 August 2001 08:20, Ted Harding wrote:
On 12-Aug-01 Jim Hatridge wrote:
Hi all..
I've looked at the tar man and info, but still can not understand what to do.
Here's the deal. I've got a tape drive. I've got it where I can write to the drive, no problem. BUT how do I get something off the tape?
What I want to do is take one file from the tape and put it on different place than where it came from. For example:
I have on the tape a file /home/jim/XX I want that file, and only that file, on /home/wife/XX
How do I do that?
Hi Jim,
You don't say what the "name" of the tape archive is, but let's suppose it was simply written "raw" to /dev/tape.
The thing to notice is that the "O" option extracts the file to standard output, which you can then redirect where you want.
E.g. if you created the archive uncompressed, with something like
tar cf /dev/tape /home/jim
you should be able to do what you want with
tar Oxf /dev/tape /home/jim/XX > /home/wife/XX
Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding)
Fax-to-email: +44 (0)870 167 1972 Date: 12-Aug-01 Time: 13:20:09 ------------------------------ XFMail ------------------------------