[5842] in RedHat Linux List
Dump problems...
daemon@ATHENA.MIT.EDU (Craig Maloney)
Sun Nov 24 13:54:21 1996
Date: Sun, 24 Nov 1996 13:52:10 -0500 (EST)
From: Craig Maloney <craig@ic.net>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Hi. I'm having some problems using dump-0.3-5 ... here is what I'm
doing...
#!/bin/sh
trap '' 1 2 15
DIR=/var/adm/scripts/backups
TAPE=/dev/st0
NTAPE=/dev/nst0
cd $DIR
mv $DIR/log.* $DIR/logs
# chop up the current date
NOW=`/bin/date`
DAY=`echo $NOW | cut -f1 -d" "`
MONTH=`echo $NOW | cut -f2 -d" "`
DATE=`echo $NOW | cut -f3 -d" "`
YEAR=`echo $NOW | cut -f6 -d" "`
STAMP="$DAY"
# open $DIR/log file
echo "Backup started on $NOW" > $DIR/log.$STAMP
echo "" >> $DIR/log.$STAMP
# test if tape drive is ready
/bin/mt -f $TAPE rewind
# backup files local to this server
# / partition
/sbin/dump 0dbsfu 61000 32 2640 $NTAPE /dev/sda1 2>> $DIR/log.$STAMP
# /usr
/sbin/dump 0dbsfu 61000 32 2640 $NTAPE /dev/sda3 2>> $DIR/log.$STAMP
# /home
/sbin/dump 0dbsfu 61000 32 2640 $NTAPE /dev/sda4 2>> $DIR/log.$STAMP
# /var
/sbin/dump 0dbsfu 61000 32 2640 $NTAPE /dev/hda2 2>> $DIR/log.$STAMP
# /mnt/syquest
/sbin/dump 0dbsfu 61000 32 2640 $NTAPE /dev/sdb1 2>> $DIR/log.$STAMP
#
# rewind the tape (fair enough)
/bin/mt -f $TAPE offline
#
# mail our results
#
mail craig < log.$STAMP
#
# Finis. Inform that we've completed and compress the logfile.
#
echo "All backups completed at `/bin/date`" >> $DIR/log.$STAMP
/usr/bin/gzip $DIR/log.$STAMP
And here's what I get in return...
Date: Fri, 22 Nov 1996 03:00:01 -0500
From: Cron Daemon <root@bullwinkle.ic.net>
To: root@bullwinkle.ic.net
Subject: Cron <root@bullwinkle> /var/adm/scripts/backups/backup-level0
/dev/st0: I/O error
and...
DUMP: Date of this level 0 dump: Sun Nov 24 03:00:01 1996
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/sda1 (/) to /dev/nst0
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 11636 tape blocks on 0.01 tape(s).
DUMP: dumping (Pass III) [directories]
DUMP: master/slave protocol botched.
DUMP: The ENTIRE dump is aborted.
Along with a core file...
Any ideas?
Thanks!
,-----------------------------------------------------------------------------.
> Craig Maloney | <
> craig@ic.net | Off you go! <
> http://ic.net/~craig | <
`-----------------------------------------------------------------------------'
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null