Re: Tape Archiving
- From: Dances With Crows <danceswithcrows@xxxxxxx>
- Date: 29 Apr 2008 22:15:33 GMT
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
.
- References:
- Tape Archiving
- From: jbachman
- Tape Archiving
- Prev by Date: Re: Central access control system for Linux
- Next by Date: CPU meter
- Previous by thread: Tape Archiving
- Next by thread: Market for SMB Linux consultants?
- Index(es):
Relevant Pages
|