Correct, you do not mount the tape drive. You directly attach to it using tar, cpio, backup package etc.
Yes skip mount and use tar.
You must make a decision
1: DO I want my tars to append on the tape everytime
or
2: DO i want them to rewind and overwrite what I have everytime.
/dev/st0 = rewinding scsitape0
/dev/nst0 = nonrewinding scsitape0
If you want to append the tapes use nst0, if you want to overwrite everytime to backup to tpae then use rewind. It starts at the beginning of the tape everytime you access it.
So to use tar:
to create a tar directly to the device
tar -cvf /dev/nst0 /dir_to_backup (c = create v= verbose f=file)
When you create a tar to device the "name" is the device itself.
You can create a tar that does not go to tape, but is on the local file system. IE. you download a tarball. The tarball is a tar created on the filesystem, not directly onto tape. Replace /dev/nst0 with a name that you want to give the tarball.
tar -cvf my_tar_ball /home/me
This is when you use compression, when on local filesystems. man tar to see which versions of compression to use. the standard is gzip. add a z to options tar -czvf 0r tar -zxvf. To use bzip2 use -j instead of -z.
to retrieve from tape
tar -xvf /dev/nst0 (x=extract v=verbose f=file)
DO NOT USE SOFTWARE COMPRESSION. Let the hardware do its own compression. It will be faster and better.
I hope this helps.
>---------------------------------------Lawrence Feldman
SR. QA. Engineer SNAP Appliance
lfeldman@snapappliance.com