Path: utzoo!censor!geac!jtsv16!uunet!cs.utexas.edu!usc!orion.cf.uci.edu!iglesias From: iglesias@orion.cf.uci.edu (Mike Iglesias) Newsgroups: comp.unix.ultrix Subject: Re: dump on old 1.2 Ultrix... Message-ID: <2425@orion.cf.uci.edu> Date: 2 Aug 89 16:11:58 GMT References: <412@wuee1.wustl.edu> <4082@portia.Stanford.EDU> <7484@cbmvax.UUCP> <4113@portia.Stanford.EDU> Reply-To: iglesias@orion.cf.uci.edu (Mike Iglesias) Organization: University of California, Irvine Lines: 82 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@brl-sem.arpa From: Robin Cutshaw Subject: Re: TK-50 tape backups -- could they go faster? In article <241@kosman.UUCP>, kevin@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 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