3B1/7300 backup

JIM PICKERING jrp at rducky.UUCP
Sat Mar 12 15:09:38 AEST 1988


If you are as paranoid as I am about a hard disk crash on your 3B1 or 7300,
you probably backup up your machine frequently using floppy disks.  I happen
to use the UA 'floppy' command for its convenience.  Since it is such a pain
to load floppy after floppy for a backup (please Santa bring me a tape drive),
I generally only backup up my personal account.  Unfortunately the UA backup
command for an individual user neglects to tell you how many disks you will
need.  After not having enough disks to do this, I found an easy fix.  It was
easy to implement as you can see.  Note that the number of floppy disks is
only an approximate of the number that will actually be needed.

Fix:	From rn, say "| patch -d /usr/bin", if you are reading news as root
	(which is pretty stupid).
	Outside of rn and as root, say "cd /usr/bin; patch <thisarticle".
	If you don't have the patch program, apply the following by hand, or
	get patch.

Index: Backup.sh
144,150c144
< 	set `du -s $DIR`
< 	BLOCKS=$1
< 	FLOPPYS=`expr $BLOCKS / 600 + 1`
< 	TIME=`expr ${FLOPPYS}0 / 8`
< 	message -cu "The backup will need about $FLOPPYS formatted floppy diskettes, and will take about $TIME minutes.\
<   Please insert the first floppy diskette.  The floppy diskettes MUST\
<  be formatted.  If you do not have enough formatted floppy disks, please press Cancel."
---
> 	message -cu "Insert the floppy disk to be used for this backup.  The floppy disk MUST be formatted.  If you do not have any formatted floppy disks, please press Cancel."
-- 
Jim Pickering			|| (n)   ..csustan!polyslo!rducky!jrp 
265 Spruce St., Apt. H		|| (s)   ..sdsu!polyslo!rducky!jrp 
Arroyo Grande, CA 93420		||       ..polyslo!northway!rducky!jrp
(805) 473-1037			||       jrp at rducky.UUCP



More information about the Comp.sys.att mailing list