Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!sundc!gouldsd!mjranum From: mjranum@gouldsd.UUCP (Marcus J. Ranum) Newsgroups: net.unix,net.unix-wizards,net.decus Subject: Re: Automatic unattended execution of 'dump' ? Message-ID: <176@gouldsd.UUCP> Date: Sun, 14-Sep-86 08:33:28 EDT Article-I.D.: gouldsd.176 Posted: Sun Sep 14 08:33:28 1986 Date-Received: Sun, 14-Sep-86 20:24:10 EDT References: <128@morgoth.UUCP> Organization: Gould Inc, ASDD, Landover, MD Lines: 34 Keywords: Ultrix 1.2, dump, backup, uVAX II Summary: timed dumps Xref: mnetor net.unix:5478 net.unix-wizards:7877 net.decus:405 In article <128@morgoth.UUCP>, glidden@morgoth.UUCP (Ken A. Glidden) writes: > > We have a uVAX II running Ultrix 1.2. I'd like very much to use > the crontab to start up a shell script late at night to perform > a dump. Specifically I'd like the shell script to "simulate" > single user mode by preventing any logins, killing any processes which > have the potential to alter the disk during the dump, and preventing > any processes which may alter the disk during the dump from starting > while the dump is in progress. Once finish the script should undo all > its protections and allow business as usual. Um, how about something cheesy like this: 1)create /etc/nologin. 2)log out your users (for a in `ps -ag | sed /root/d | awk print{$1} `;do kill -9 $a; done or something equally sleazy 3)run dump 4)remove /etc/nologin 5)voila to prevent crontab processes from fiddling with the disks, make sure your crontab is corretly tuned. I have a set of shell scripts that do this in a rather more sophisticated manner, but I can't send 'em to you. You might want to trap exit statuses, and print results, etc, etc... Since you have a relatively small system, really think the best way to solve your problem is to just do everything in a simple shell script. Live Free mjr -- I raised my knife to it: Some fresh young morning-glory As we too, alas...