home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!mcsun!Germany.EU.net!Urmel.Informatik.RWTH-Aachen.DE!rwthi3!peter
- From: peter@rwthi3.informatik.rwth-aachen.de (Peter Heimann)
- Subject: Re: Automatic dump 0 backup, need help!
- Message-ID: <peter.714921742@rwthi3>
- Sender: news@Urmel.Informatik.RWTH-Aachen.DE (Newsfiles Owner)
- Nntp-Posting-Host: martha
- Organization: Informatik III, RWTH Aachen
- References: <13741@chalmers.se>
- Date: 27 Aug 92 13:22:22 GMT
- Lines: 37
-
- In <13741@chalmers.se> d0bpl@dtek.chalmers.se (Patrik Larsson) writes:
-
- >The question is: how do I tell cron to
- > 1, enter single-user mode
- > 2, make several dump 0's
- > 3, reenter multiuser-mode and start up everything
-
-
- 1. Write a script /usr/local/bin/dumpscript that performs the dump
- operations.
-
- 2. Add the following to /etc/rc, after the execution of /etc/rc.single and
- the removal of /etc/ld.so.cache:
- #
- # automatic backup before multiuser startup?
- #
- if test -r /etc/do_backup ; then
- rm -f /etc/do_backup
- sh /usr/local/bin/dumpscript
- fi
-
- 3. Put in a tape, as root execute
- touch /etc/do_backup ; /usr/etc/shutdown -r 22:00 " for backup"
- by hand, or put a similar line into root's crontab.
-
- On reboot, the machine will check for the presence of /etc/do_backup. If
- present, a dump will be performed before going from single- to multiuser
- mode.
-
- I have seen this idea first in a posting from
- Marc St.-Gil (mstgil@sol.acs.unt.edu) in comp.unix.admin last year.
-
- -- Peter Heimann
-
- Lehrstuhl fuer Informatik III peter@rwthi3.informatik.rwth-aachen.de
- RWTH Aachen
-
-