Way back on Aug 23, regarding apkg
Eric Spakman wrote:
> A 'complete' backup is always done for a few reasons:
> -it removes stale changed config files from no longer installed packages.
> -it's fast because the configdb is not big
> -it's much simpler and robust
>
it's the removal of stale files from not-presently-installed packages
that caused me some grief.
I was testing sensors.lrp etc and was rebooting often so I commented out
many of the packages. I got sensors working and then restored my
complete set of packages. However all my previous config was gone since
these packages were not installed at the time that I saved my fixed
sensors configuration.
This is a real booby-trap, IMO. (I was lucky as I had been backing up my
floppy quite often and was able to reconstruct all my settings).
To make sure this wouldn't bite me again I wanted to change the
behaviour of the "Save config" so that it backed up whatever is
specified by all of the /var/lib/lrpkg/*.local files regardless of
whether that particular package is presently installed.
To accomplish this I had to
1) make sure that all *.local files would live in the config.db file. I
added
/var/lib/lrpkg/*.local
to the file /var/lib/lrpkg/config.local
2) I then adjusted apkg to use the *.local filelist, not the contents of
$PKGDB:
in file /usr/sbin/apkg the line
cat $PKGDB | while read x; do
became 2 lines
ls $PKGDIR/*.local | while read x; do
x=`basename $x .local`
=============
I guess that it can be considered a feature but this propensity to
remove inactive configuration data is IMO a bug. I like that LEAF has
the ability to do this remove_stale_saveconfig but I'd prefer to have a
separate menu option - #1) the normal, default save which works from
*.local, and #2) the 'housecleaning save config' that saves only
presently-loaded-package configs.
Thoughts?
scott; canada
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------------------------------------------------
leaf-user mailing list: [email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/