Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Sep 2000 17:28:52 -0500 (CDT)
From:      BWS - Offwhite <brennan@offwhite.net>
To:        freebsd-questions@freebsd.org
Subject:   Tape drive capacity
Message-ID:  <Pine.BSF.4.21.0009181652570.74263-102000@home.offwhite.net>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
I have a new new Seagate Tapestor drive and would like to know how I can
use it better.

I have created a backup and restore script.  They are attached to this
email.

Those scripts work fine, but I am not sure how to determine how much of
the tape was used during the last write.  Since I am using "dd" to write
to the tape device it will tell how much was written, but I am wondering
if there is more I can do.

Are there any good doc sites out there for using tape drives?  I have read
over the FreeBSD docs and do not see anything about getting the info I
want.

Brennan Stehling - web developer and sys admin
projects: www.greasydaemon.com | www.onmilwaukee.com | www.sncalumni.com

[-- Attachment #2 --]
#!/bin/sh

# sa0 is the default, but this is just to be sure
mt -f /dev/rsa0 rewind

# tried to turn on compression, but does not seem to work
# mt comp on

# list of directories to back up
#list="/etc /usr/local/etc/ /home/ /web/servers"
list="/etc"

# tar a backup to the raw tape device
tar -czf - ${list} | dd of=/dev/rsa0 obs=20b


[-- Attachment #3 --]
#!/bin/sh

# sa0 is the default, but this is just to be sure
mt -f /dev/rsa0 rewind

cd ~/RESTORE

# tar a backup to the raw tape device
tar -xpvf /dev/rsa0 


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0009181652570.74263-102000>