Interactive 2.2 install query

Gary Heston gary at sci34hub.UUCP
Tue Jul 10 02:31:25 AEST 1990


In article <1990Jul07.152106.23429 at turnkey.tcc.com> jackv at turnkey.TCC.COM (Jack F. Vogel) writes:
>In article <1990Jul07.125218.24439 at virtech.uucp> cpcahil at virtech.UUCP (Conor P. Cahill) writes:
>>like some of my crontab entries got blown away, my gettydefs file got blown
>>away,etc).  If you have room, make sure you have an on-line backup copy
>>of your root FS so that you have immediate access to whatever gets blown 
>>away.
 
>I have a WD1006 based system rather than ESDI, and also did the upgrade
>rather than reinstall. I also had no other problems than what Conor mentioned.
>Just remember to make backup copies of your crontab files, /etc/inittab, and
>so forth.   ....

In order to save space, and ease disaster recovery, you can create a 
skeleton image of the root fs directories, and link the configured 
files (inittab, crontabs, uucp device files, passwd, and so on) 
into it. Then, make a quick backup of this directory, do your update
(which will probably overwrite a few files, no matter which vendor 
you're dealing with), and restore the directory. Since the files will
still be linked, restoring the directory restores the configuration,
and saves lots of hair pulling. For example, I use a directory
named /x for this, so I have /x/etc, /x/bin, /x/usr/bin, /x/usr/lib,
and whatever subsidiary directories I need. Then:

ln /etc/passwd		/x/etc/passwd
ln /etc/inittab		/x/etc/inittab
ln /etc/gettydefs	/x/etc/gettydefs
  .....
  (whatever other files you configure...)

(This can be a cron-executed script to make sure things don't get
accidentally unlinked.) Now, if you tar -cvf /dev/rfd0 /x everything
gets saved. The tar can be done from within /x if you want to 
restore directly to the system files, by doing the tar -x from
/ instead of /x.

The only hangup is that this only works within a file structure,
obviously, so if you have /usr mountable you have to save those
files separately. 

I came up with this trick while testing successive beta releases,
to save myself a lot of re-config work. It's proven to work quite
well, and eliminates the need for a separate root fs image. It saves
backup time since you don't need to dump the whole root fs, just the
one directory. 

Comments? 

-- 
    Gary Heston     { uunet!sci34hub!gary  }    System Mismanager
   SCI Technology, Inc.  OEM Products Department  (i.e., computers)
"The esteemed gentleman says I called him a liar. That's true, and I
regret it." Retief, a character created by Keith Laumer.



More information about the Comp.unix.i386 mailing list