Automatic unattended execution of 'dump' ?

Karl T. Braun kral braun at drivax.UUCP
Sun Sep 28 06:43:25 AEST 1986


In article <1993 at udenva.UUCP> wedgingt at udenva.UUCP (Will Edgington/Ejeo) 
writes:

...
>  We do dumps 'auotmatically' by telling our operators to pick a certain
>choice on their menu (they log in as UID 0, but into a *very* restricted
>shell), which runs shutdown after echoing 'backup' into a certain file.
>Then, in /.profile, we have a test of the contents of that file; if it
>is 'backup', it runs a shell script '/etc/local/backup' which tells the
>operators which tape(s) to mount before it starts /etc/dump, the output
>of which is redirected using tee to both the console and /tmp/dump.out
>(or some such).  /bin/awk is then used to see if the dump failed by
>checking for 'DUMP IS DONE' in /tmp/dump.out.  If it failed, it's redone
>via a goto in /etc/local/backup; if not, the awk script enters a line in
>/etc/local/dump.inv(entory) listing the file system, mount point, number
>of tapes required, the date from /etc/dumpdates (or where ever /etc/dump
>puts it), the label(s) put on the outside of the tape, etc.  
...
>Anyone who wants any of the
>programs described above should send me mail; if I get enough requests, I'll
>post everything when I get it in decent shape.  Note that it is (and will be)
>only dependent on /etc/dump in a very small section of /etc/local/backup; if
>you System V people want to use it with cpio(1) or tar(1), it should be
>fairly easy.
>-- 
>------------------------------------------------------------------------
>|"Input!"|"Number 5 is Alive!!"|"Beautiful software"|"Not disassemble!!"
>------------------------------------------------------------------------
>Will Edgington|Computing and Information Resources, University of Denver
>(303) 871-2081|BusAd 469, 2020 S. Race, Denver CO 80208 (work)|"Input!!"
>(303) 759-9071|5001 E. Iliff, Denver CO 80222 (home)|"Where's Input?!!?"
>{{hplabs,seismo}!hao,ucbvax!nbires,boulder,cires,cisden}!udenva!wedgingt


I tried to mail, but neither the mailer nor myself could quite make out
the address.  I am interested in the script, and I'm sure I'm not the
only one.  Thanx in advance for anything you may send or post.



-- 
-- 
			  kral
		      408/646-6112
		...!{amdahl,ihnp4}!drivax!braun
-----
The opinions expressed here are my own, and do not necessarily reflect the 
opinions of my employers, my country, the minor deities from the Halls of
Asgaard, or the great Prophet Zarquon.
----



More information about the Comp.unix mailing list