Dale Martin wrote:
> 
> 1) It tars directly to a device - not to a filesystem.  This means one
> backup (full, differential, or incremental) per disk, yes?  I haven't
> looked too hard yet - hacking the script to tar to a filesystem can't
> be that hard, though.

Nope.  Tob allows you to put multiple backups on the same tape.
It uses mt(1) to go to the right place on the tape (you must use
the non rewinding tape device to get this to work however).  I
believe tob defaults to putting a full backup at the beginning
of a tape, a diff is written in the second spot, and incrementals
are appended to that.

> 2) It saves it's indexes and so forth in "/var/something" on the
> machine the backups run on.  Umm, what if that's the disk that
> crashes?!  I guess I could include this dir for every backup I've
> made, but then, it will back up it BEFORE the new index gets written?
> So, I'll need a separate script to backup the backup index?!

The indexes are only needed for generating differential and incremental
backups.  A restore is accomplished by merely restoring all backups
on a tape in order (full then diff then all incremtals).

If you lose the disk (and therefore /var/lib/tob/*) you aren't likely
to be doing a diff or incr backup, so whats the problem?

If it helps, I use the following /etc/tob/tob.rc with a SCSI DAT
drive (NOTE I have a link from /dev/ntape -> /dev/nst0):

----------------------------------------------------------------------
# tob.rc --- resource file for the 'tob' script by Karel Kubat
#
# This file is sourced by /sbin/tob.
#
# Some site or hardware specific settings may have to be added locally.
# See the manual page tob(1), the script /sbin/tob, the documentation
# in /usr/doc/tob/tob.txt.gz or /usr/doc/tob/tob.ps.gz, and the examples
# in /usr/doc/examples/tob for details.
#
# These are the settings I use. You might want to change them.
#
# Sat May 04 1996  Dirk Eddelbuettel  <[EMAIL PROTECTED]>

TOBHOME="/etc/tob"              # contains volumes directory
VERBOSE='yes'

# output device is the non-rewinding tape device
BACKUPDEV="/dev/ntape"

# what backup are we performing?
if [ "$TYPE" = "full" ] ; then
  # for full backups: start at beginning of tape
  echo "Rewinding tape -- new info will be the first entry."
  mt -f $BACKUPDEV rewind
elif [ "$TYPE" = "diff" ] ; then
  # skip first entry for differential backups
  echo "First entry on tape skipped -- new info will be entry 2."
  mt -f $BACKUPDEV fsf 1
elif [ "$TYPE" = "inc" ] ; then
  echo "All entries on tape skipped -- new info will be appended."
  mt -f $BACKUPDEV eom
fi

# if we're not doing a backup: ask user for position
#if [ "$TYPE" = "none" ] ; then
#  # initially rewind tape
#  mt -f $BACKUPDEV rewind
#  echo "No tape position known in advance. Position to what entry?"
#  read $nr
#  mt -f $BACKUPDEV fsf $nr
#fi
-----------------------------------------------------------------------

Behan

-- 
Behan Webster     mailto:[EMAIL PROTECTED]
+1-613-224-7547   http://www.verisim.com/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .

Reply via email to