Obtaining a hardcopy of UNIX backups.

Root Boy Jim rbj at icst-cmr.arpa
Wed Apr 27 07:40:48 AEST 1988


   From: Curt Signorino <curt at cieunix.rpi.EDU>

	   I'm revising the system we use to do backups via an
   automated shell, etc.  One problem I've run into is that
   I would like to get a hardcopy listing of filenames of the
   files backed up.  We do this on our VAX/VMS machine and it 
   makes life SO much easier when someone needs a file they've
   deleted and you've got to search for it.

	   I had thought I'd just give dump a "-v" option and
   redirect stdout to a file and then print the file.  Unfortun-
   ately, dump on 4.3 BSD UNIX doesn't have the verbose option
   and doesn't output the filenames of files backed up (to stdout).

I once looked for a place to put -v into dump as well. It's certainly
not obvious.

	   There must be a simple answer to this.  I can't 
   imagine sites with massive backups having to search through
   tape after tape every time they needed to restore a file
   or directory.

Ideally, what you want to do is pipe the output to *both* restore tv
*and* the raw tape. Since dump is optimized for running multiple tape
subprocesses, it's probably easier to do the following. I am assuming
your dump script looks something like:

	foreach x (/ /usr /foo /bar)
		dump ${level}uf $tape $x
	end

The easiest thing to do is run another dump piped to restore in the
background before the real dump, without the update option. The piped
dump should complete before the real one. Add these lines before your dump:

	set y="$x:t"
	if ("$y" == "") set y=root
	set y="/somewhere/DUMP.$y.$level.`date`"
	dump ${level}f - | restore tvf - < /dev/null >& "$y" &

That should produce what you want. Note, I didn't test this, so I may
have mucked a detail or two somewhere. Good luck.

	   Also,  I'm going to use the Tower of Hanoi sequence
   given in the 4.3 BSD UNIX manuals.  Anyone have any comments
   on if this is good, bad, sad? 

It would seem to take awhile to get thru all the levels. We do monthly
level zero's, weekly level ones (all on the same tape), and a nightly
script dumps selected partitions to a special backup partition. Do
anything that seems reasonable.

	   Thanks in advance for any help.

   Curtis S. Signorino
   Center for Integrated Electronics
   RPI

	(Root Boy) Jim Cottrell	<rbj at icst-cmr.arpa>
	National Bureau of Standards
	Flamer's Hotline: (301) 975-5688
	The opinions expressed are solely my own
	and do not reflect NBS policy or agreement
I want you to MEMORIZE the collected poems of EDNA ST VINCENT MILLAY BACKWARDS!



More information about the Comp.unix.questions mailing list