1827390 Members
4678 Online
109964 Solutions
New Discussion

tape drive

 
Edgar_10
Frequent Advisor

tape drive

Hi,

Anyone have a document for issueing tape drive commands(ie.copy data to tape; list data copied to tape; deleting data from tapes). Ive tried the man pages but only found "mt", which is limited.

Regards!
4 REPLIES 4
twang
Honored Contributor

Re: tape drive

cope data to tape:
# tar cv /tmp

list data copied to tape:
# tar tv

deleting data from tapes:
# dd if=/dev/null of= bs=1024
or see 'mediainit' man page.
Michael Tully
Honored Contributor

Re: tape drive

There's quite a few. 'mt' is used to manupulate the drive where as the below commands write data. Once the data is written you can view the data on the tape as well as extract it.

tar
cpio
fbackup/frecover
dd
pax
dump
tcio

There are man pages on all of these. You can flatten data on a tape by simply rewinding the tape and starting a new archive.
Anyone for a Mutiny ?
doug mielke
Respected Contributor

Re: tape drive

Only one more, which is not practical for data backup, but handy for testing is redirection.

cat filename > /dev/tapedriverfile

cpio is very robust, and you can do almost anything you want with it. It would be my first man page to read.
Jagadesh
Frequent Advisor

Re: tape drive

U can use
tar
mt
cpio
pax

syntax
tar
****
Creating a tar file
#tar cvf / /dev/rmt/
use #ioscan -Fnc tape to determine the tape device.

Extracting tar file
******************
#tar -xvf /dev/rmt/ /


U can use SAM to extract or copy files to tape

Hope this helps
-Jagadesh