Re: Tape Archiving



jbachman staggered into the Black Sun and said:
Looking for direction on how to write tar balls to [an] actual tape
drive. I'm actually doing this in OS X but don't want to use our
backup software. I want the tapes to not be proprietary so I'd like
to do it through command line but I'm very new to Linux and don't know
how to access the tape drive device.

Your question is a bit unclear. Is the machine that has the tape drive
plugged into it running OS X, or Linux? This is important, as the
device name of the tape drive will be different. In Linux, the first
auto-rewinding SCSI tape drive is /dev/st0 , and the first SCSI tape
drive that doesn't auto-rewind is /dev/nst0 . If you wanted to tar up
/home to the first SCSI tape and then rewind the tape, you'd do

tar cf /dev/st0 /home

....and if you wanted to write /home, then write /usr to the same tape,
you could do

tar cf /dev/nst0 /home && tar cf /dev/nst0 /usr

....you can use the mt utility to rewind tapes, eject tapes, retension
tapes, advance a set number of file marks, and a few other things.
Check its man page out for details. If you have a tape changer, you can
use mtx to do even more things.

OS X's userland is BSD-based, so the device name for the first SCSI tape
is probably something like /dev/sa0 . Or it could be something totally
strange. I don't know, I've never had as OS X box that was connected to
a tape drive. HTH,

--
"Assembly of God". Haven't you ever wondered what goes on in a place
like that? What kinds of parts does God need? --Slacquer
My blog and resume: http://crow202.dyndns.org:8080/wordpress/
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
.



Relevant Pages

  • RE: redhat-list Digest, Vol 27, Issue 26
    ... The reason I was tarring a tar file to the tape I didn't want to backup a whole file system just to test the tape drive. ... I take that same tape and try to read it on the tape drive that is connected to the linux machine and it doesn't work. ... echo command as in windows ...
    (RedHat)
  • [SLE] How to restore root filesystem from backup
    ... scsi SDLT tape drive and I am using the Linux native dump command to ... agreement on behalf of the NSW Department of Commerce by email. ...
    (SuSE)
  • Re: [SLE] How to restore root filesystem from backup
    ... > scsi SDLT tape drive and I am using the Linux native dump command to ... > backup all ext3 type filesystems to tape on a nightly basis, ... I suggest you look at mondo rescue and use this for backing up. ...
    (SuSE)
  • Re: TOP Network Interface Port of a Sun Ultra 30
    ... so expect about 5GB per tape -- perhaps double that with the ... The Linux is what my mother and I use. ... about how to fix the Sun computer when I get this QFE card! ... Part of the problem is what the port in the card ...
    (comp.sys.sun.hardware)
  • Re: [SLE] How to restore root filesystem from backup
    ... > scsi SDLT tape drive and I am using the Linux native dump command to ... Boot the suse installation cd in rescue mode ... Restore from the backed-up media. ...
    (SuSE)