home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sun / admin / 5879 < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.5 KB  |  50 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!mcsun!Germany.EU.net!Urmel.Informatik.RWTH-Aachen.DE!rwthi3!peter
  3. From: peter@rwthi3.informatik.rwth-aachen.de (Peter Heimann)
  4. Subject: Re: Automatic dump 0 backup, need help!
  5. Message-ID: <peter.714921742@rwthi3>
  6. Sender: news@Urmel.Informatik.RWTH-Aachen.DE (Newsfiles Owner)
  7. Nntp-Posting-Host: martha
  8. Organization: Informatik III, RWTH Aachen
  9. References: <13741@chalmers.se>
  10. Date: 27 Aug 92 13:22:22 GMT
  11. Lines: 37
  12.  
  13. In <13741@chalmers.se> d0bpl@dtek.chalmers.se (Patrik Larsson) writes:
  14.  
  15. >The question is: how do I tell cron to
  16. >   1, enter single-user mode
  17. >   2, make several dump 0's
  18. >   3, reenter multiuser-mode and start up everything
  19.  
  20.  
  21. 1. Write a script /usr/local/bin/dumpscript that performs the dump
  22.    operations.
  23.  
  24. 2. Add the following to /etc/rc, after the execution of /etc/rc.single and
  25.    the removal of /etc/ld.so.cache:
  26.     #
  27.     # automatic backup before multiuser startup?
  28.     #
  29.     if test -r /etc/do_backup ; then
  30.         rm -f /etc/do_backup
  31.         sh /usr/local/bin/dumpscript
  32.     fi
  33.  
  34. 3. Put in a tape, as root execute 
  35.      touch /etc/do_backup ; /usr/etc/shutdown -r 22:00 " for backup"
  36.    by hand, or put a similar line into root's crontab.
  37.  
  38. On reboot, the machine will check for the presence of /etc/do_backup. If
  39. present, a dump will be performed before going from single- to multiuser
  40. mode.
  41.  
  42. I have seen this idea first in a posting from 
  43. Marc St.-Gil (mstgil@sol.acs.unt.edu) in comp.unix.admin last year.
  44.  
  45. -- Peter Heimann
  46.  
  47. Lehrstuhl fuer Informatik III        peter@rwthi3.informatik.rwth-aachen.de
  48. RWTH Aachen
  49.  
  50.