John covici wrote:
on Thursday 01/01/2009 Graham Murray(gra...@gmurray.org.uk) wrote
> Nikos Chantziaras <rea...@arcor.de> writes:
>
> > You cannot roll back if you choose to keep the new file with
> > dispatch-conf and didn't backup the current one first.
>
> You can if you have use-rcs=yes in /etc/dispatch-conf.conf, which the
> OP is probably using as the post mentions the archive directory.
In fact, I have rcs=no, but the directory does have files in it, so if
I know which file to copy back, I can restore things -- but my
questions remain -- what is the file naming conventions for those
files and what happens if I update the same file again?
If you have rcs=no, the files are, to my knowledge, the previous version
of the configuration file and use exactly the same filename.
In my experience dispatch-conf will _always_ ask about a file the first
time it encounters it. Once it has asked you once, it then knows about
the state of that file and can obey things like the unmodified rule when
a new version of the file is considered.
You can check the differences between 2 files using diff, eg:
diff /etc/config-archive/etc/init.d/fsck /etc/init.d/fsck
The format is: diff <old-file> <new-file>
You may prefer the -u option: diff -u <old> <new>
Or, in the package of the same name, colordiff: colordiff -u <old> <new>
There are also graphical diff tools (eg. kompare)
AllenJB