dump on old 1.2 Ultrix...

Mike Iglesias iglesias at orion.cf.uci.edu
Thu Aug 3 02:11:58 AEST 1989


I saved a message from info-unix about 2 years ago that said how to
speed up dumps to tk-50s under Ultrix 1.2.  I've used it to reduce the
time to save the /usr partition on an RD53 (~42mb, ~40mb used) from 
3 hours to 30 minutes.  The message is enclosed below.


Mike Iglesias
University of California, Irvine

Date:    12 Jun 87 21:04:29 GMT
To:      info-unix at brl-sem.arpa
From:    Robin Cutshaw <robin at itcatl.uucp>
Subject: Re: TK-50 tape backups -- could they go faster?

In article <241 at kosman.UUCP>, kevin at kosman.UUCP (Kevin O'Gorman) writes:
> Running dump(8) on a MicroVAX, Ultrix 1.2A -- and I'm getting REAL
> tired of waiting for the tape.  The tape unit is a streamer, and the
> software is not fast enough to keep it in streaming mode, so I wait
> and wait and wait....
> 


Use b and s flags (bs 126 7400) and it will stream.  Restore will also
work under Ultrix using the b flag (b 126) flag.  Our backup script follows...


#!/bin/csh

if ($#argv != 1) then
	echo "Usage:  quickdump level"
	exit
endif

echo -n "Dump starting at " >&/usr/adm/lastdump.$1
/bin/date >>&/usr/adm/lastdump.$1

/etc/dump $1ucbsf 126 7400 /dev/nrmt8 /        >>&/usr/adm/lastdump.$1
echo "" >>&/usr/adm/lastdump.$1
/etc/dump $1ucbsf 126 7400 /dev/nrmt8 /usr     >>&/usr/adm/lastdump.$1
echo "" >>&/usr/adm/lastdump.$1
/etc/dump $1ucbsf 126 7400 /dev/nrmt8 /u       >>&/usr/adm/lastdump.$1
echo "" >>&/usr/adm/lastdump.$1
/etc/dump $1ucbsf 126 7400 /dev/nrmt8 /usr/ita >>&/usr/adm/lastdump.$1
echo "" >>&/usr/adm/lastdump.$1
if (X$1 == "X0") then
	mt -f /dev/rmt8 rew
	echo "Change tapes for level 0 dump.  Hit <CR> to continue." >>&/usr/ad
m/lastdump.$1
	$<
endif
/etc/dump $1ucbsf 126 7400 /dev/rmt8 /u/usr   >>&/usr/adm/lastdump.$1
echo "" >>&/usr/adm/lastdump.$1

echo -n "Dump finished at " >>&/usr/adm/lastdump.$1
/bin/date >>&/usr/adm/lastdump.$1


And here is the restore script (note that we place several partitions on
one tape)...


#!/bin/csh

if ($#argv != 1) then
	echo "Usage:  quickrestore [0-4]"
	exit
endif

mt -f /dev/rmt8 rew
echo -n "Restore starting at "
/bin/date
if (X$1 != "X0") mt -f /dev/nrmt8 fsf $1

/etc/restore ibf 126 /dev/nrmt8

echo -n "Restore finished at "
/bin/date


We use restore by itself for the last partition restoration.

robin



More information about the Comp.unix.ultrix mailing list