NBilly
asked on
Tape backup using tar
I perform the following command to backup a file to tape. But, we I want to list the content of the tape I get no output and error.
mt -f /dev/nst0 rewind
tar cvf /dev/nst0 sqlnet.sql
and when I want to list the content of tape with
Tar tf /dev/nst0 ( there is no output)
What am I doing wrong.
When I do
mt -f /dev/nst0 status ( the output is )
SCSI 2 Tape Drive:
Filenumber=-1, blocknumber=-1, partition=-1.
Tape block size 0 bytes. Density code 0x40 (DLTI 40gb, or Ultrium)
mt -f /dev/nst0 rewind
tar cvf /dev/nst0 sqlnet.sql
and when I want to list the content of tape with
Tar tf /dev/nst0 ( there is no output)
What am I doing wrong.
When I do
mt -f /dev/nst0 status ( the output is )
SCSI 2 Tape Drive:
Filenumber=-1, blocknumber=-1, partition=-1.
Tape block size 0 bytes. Density code 0x40 (DLTI 40gb, or Ultrium)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I figured out my second in my last comment. I understand how it works now. Thanks.
ASKER
After that I did a mt -f /dev/nst0 rewind and then did a tar -tf /dev/nst0 but it only lists the sqlnet.log from the first tar command. Do you know why it's not outputting the nbtest.log.