Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!lll-lcc!qantel!ihnp4!inuxc!pur-ee!uiucdcs!convex!convexs!hosking From: hosking@convexs.UUCP Newsgroups: net.unix Subject: Re: Automatic unattended execution of ' Message-ID: <49600015@convexs> Date: Thu, 18-Sep-86 05:46:00 EDT Article-I.D.: convexs.49600015 Posted: Thu Sep 18 05:46:00 1986 Date-Received: Sat, 20-Sep-86 20:57:21 EDT References: <128@morgoth.UUCP> Lines: 24 Nf-ID: #R:morgoth.UUCP:128:convexs:49600015:000:1094 Nf-From: convexs.UUCP!hosking Sep 18 04:46:00 1986 How sleezy are you willing to be ? This is *really* crude, but it might work: The general idea is to temporarily replace /etc/rc with a dump script. 1. Create a dump script that does whatever you want. Call it /etc/dump_rc. The last thing in it should be "cp /etc/real_rc /etc/rc;/etc/reboot." It should NOT start the normal daemons. This eliminates possible races with cron jobs or other daemons. The /etc/nologin trick shouldn't be needed here, since the system will have rebooted before rc finishes. 2. cp /etc/rc /etc/real_rc. 3. Create a crontab entry that does 'shutdown -r +5 "to do the dumps"' after it does "cp /etc/dump_rc /etc/rc." Yes, there are plenty of possible problems if you crash in the middle, etc... but it's hard to make it much simpler, and it might be useful enough to use. You could do something similar with the .profile or .cshrc for root, too. How well this works would depend on the characteristics of your particular backup scheme. Since I don't know much about your system, I can't guess whether it's a workable solution for your needs.