Greetings,
I have two tape devices:
/dev/st0 DDS4 SCSI DAT drive 20/40
/dev/st1 DDS3 SCSI DAT drive 12/24
I have used them both successfully under Fedora 8 with tar, no real issues reading / writing files to the device, have a simple little script that shows me what was written to the tape, etc, etc.
What I am wondering is if there is any way to 'label' a tape? I know that software like Veritas writes its own format, with a label at the beginning. Is there any particular format I can use to label tapes?
Will just doing the following work?
Code:
touch /tmp/LABEL-Tape02-LABEL
tar -cf /dev/nst0 /tmp/LABEL_Tape02_LABEL
<rest of backup script> (/dev/st0)
Then to check a tape, I just do a
Code:
tar -tf /dev/st0 | grep 'LABEL*LABEL'
and it should find the first file on a tape with the name LABEL*LABEL?
The whole reason to label a tape for me, is to be able to search the files that were written to a tape and grab the correct tape. My current backup script does a tar -tf on the tape device, redirecting the output to a log file, which is then gzipped.
Anyway, thanks.
