LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Copy a 4mm tape created on an AS400 to my hard drive (https://www.linuxquestions.org/questions/linux-newbie-8/copy-a-4mm-tape-created-on-an-as400-to-my-hard-drive-25565/)

bsengland 07-11-2002 01:38 PM

Copy a 4mm tape created on an AS400 to my hard drive
 
What is the command I should use to download a labled file created on an AS400 to my hard drive?

Mik 07-12-2002 04:24 AM

That depends on how it's written to tape. In most cases it will probably be a tar archive. Or multiple tar archives on tape.

You should use the mt command to position the tape to the right location and the tar command to extract files from the tape. You can read the man pages to find out more on how that works.

In general you would do something like this to extract the second archive on tape:

# rewind tape
mt -f /dev/nst0 rewind
# skip first archive on tape
mt -f /dev/nst0 fsf
# extract archive on tape
tar xvf /dev/nst0


All times are GMT -5. The time now is 03:13 PM.