|
From: Brian N. <br...@fu...> - 2008-08-29 18:34:17
|
Agreed. I did look at the save-config script and noticed that it was a
"tar -d" that was giving the difference output.
You could augment the save-config script to compensate and print all of
the files that will get tar'd from the etc-mods directory that are not
in the current tar file.
This is not bullet proof and there might be a better way of doing this,
but...:
cd /shm
# list differences in existing files
tar -djf $CONFIG_MOUNT/$DL_CONFIG_FILE etc-mods
# list new files to be added to the tarball
for file in `find etc-mods -type f`
do
tar -tjf $CONFIG_MOUNT/$DL_CONFIG_FILE | grep $file > /dev/null
if [ $? -ne 0 ]; then
echo $file: First save
fi
done
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of
Bruce Smith
Sent: Friday, August 29, 2008 1:14 PM
To: dev...@li...
Subject: Re: [Devil-Linux-discuss] DL 1.3.6-2008-08-28-i686 save-config
showfile differences
> Been using DL 1.2.x for a few years now... and making the move to
1.3.6.
>
> I like the new save-config system only saving the files that changed,
vs the
> whole /etc directory.
Yes, that is nice, if I do say so myself. :-)
> Just something I have noticed when performing a save-config while its
> listing the differences. If the file does not exist yet in the
tarball (ie.
> It's the first edit to a file) it doesn't show up in the listing
differences
> but it does in fact get saved. Then when a 2nd edit is done and a
> save-config gets executed it does show up in the file differences
> (time/size).
>
> It would be nice to see "new file" or "first save" when a new file is
being
> added to the tarball for a little insurance J
You'll probably have to make that request to the maintainer of the
"tar" command. What you're seeing is the output of the tar "-d"
option.
- BS
------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Devil-linux-discuss mailing list
Dev...@li...
https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss
|