[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: script for on-disk configuration file backup



On Thu, May 10, 2001 at 09:31:19PM -0400, Matt Zimmerman wrote:
> On Thu, May 10, 2001 at 09:28:52PM -0400, Matt Zimmerman wrote:
> 
> > On Wed, May 09, 2001 at 03:50:15PM -0400, Steve M. Robbins wrote:
> > 
> > > After running this for a few months, I've discovered that some
> > > packages make their own backup copies of config files.  Setserial, for
> > > example backs up /etc/serial.conf to /etc/.serial.conf.old.  I've
> > > put exceptions in to ignore the ones I've found.  The script 
> > > also ignores the cache files ld.so.cache, mtab, and adjtime.
> > 
> > IMO, setserial should be changed to use /var/backups, since that is the
> > FHS-blessed place for such things, and it tends to have more space available
> > than /etc.  Regardless of the actual location, it is a very good idea for all
> > packages to do their config file backups in the same way, so that the admin
> > will always know where to find the backups.
> 
> After examining the situation, it seems that this particular backup is created
> by /etc/init.d/setserial, which runs before /etc/init.d/mountall.sh, so I guess
> this one has to stay in /etc.

But the backup file is created in the shutdown mode --- i.e. by
executing "/etc/init.d/setserial stop".  Doesn't that mean you can
assume /var has been mounted?


-- 
by Rocket to the Moon,
by Airplane to the Rocket,
by Taxi to the Airport,
by Frontdoor to the Taxi,
by throwing back the blanket and laying down the legs ...
- They Might Be Giants



Reply to: