<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.8.1">
</HEAD>
<BODY>
Having grown tired of hand-recovering from a system damaged by a combination of my cluelessness and some software's arrogance at adjusting things at random (I'm looking at whichever package constantly modifies my menu.lst for GRUB here....), I found an amazingly simple way to keep track of changes to my configuration files, boot files, etc. that is simpler and faster than using tar, et al to make backups.<BR>
<BR>
There is a one-time preparation step you need to perform to use this:<BR>
<BLOCKQUOTE>
    <TT>$ sudo apt-get install darcs</TT><BR>
</BLOCKQUOTE>
<BR>
After that run the following commands twice: once in /etc, once in /boot.  (You can probably find other places where this would help too, but these are the two directories that matter most to me right now.)<BR>
<BLOCKQUOTE>
    <TT>$ sudo darcs init</TT><BR>
    <TT>$ sudo darcs add -r *</TT><BR>
    <TT>$ sudo darcs record -am "Initial check-in."</TT><BR>
</BLOCKQUOTE>
<BR>
You now have a version-controlled repository of your /etc and /boot directories.  If you make any changes to these directories, or if you have changes made from under you, you'd type:<BR>
<BLOCKQUOTE>
    <TT>$ sudo darcs add -r *</TT><BR>
    <TT>$ sudo darcs record -am "<insert explanation of change>"</TT><BR>
</BLOCKQUOTE>
<BR>
This updates the version control repository with your changes (and with any new files).  Then, if at any point you have to recover an earlier configuration, you can type the various darcs commands (for this I'll leave you to the man page or the manual found at <A HREF="http://www.darcs.net">http://www.darcs.net</A>) used for recovering old versions.<BR>
<BR>
Be aware here that darcs <B>will</B> occupy additional space (duh!), and that if you have your boot partition too small you may not be able to do this trick.  For example, my boot configuration:
<BLOCKQUOTE>
<PRE>
<TT>isolde:/boot$ sudo du -s .</TT>
<TT>Password:</TT>
<TT>104649  .</TT>
<TT>isolde:/boot$ sudo du -s _darcs</TT>
<TT>69904   _darcs</TT>
</PRE>
</BLOCKQUOTE>
<BR>
As you can see, _darcs is occupying a pretty big chunk of my /boot partition's data, but given that I'm messing around with kernels and kernel patches, it's worth it to me.<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
--<BR>
<B>Michael T. Richter</B><BR>
<I><FONT SIZE="2">Email:</FONT></I><FONT SIZE="2"> ttmrichter@gmail.com, mtr1966@hotpop.com</FONT><BR>
<I><FONT SIZE="2">MSN:</FONT></I><FONT SIZE="2"> ttmrichter@hotmail.com, mtr1966@hotmail.com; </FONT><I><FONT SIZE="2">YIM:</FONT></I><FONT SIZE="2"> michael_richter_1966; </FONT><I><FONT SIZE="2">AIM:</FONT></I><FONT SIZE="2"> YanJiahua1966; </FONT><I><FONT SIZE="2">ICQ:</FONT></I><FONT SIZE="2"> 241960658; </FONT><I><FONT SIZE="2">Jabber:</FONT></I><FONT SIZE="2"> mtr1966@jabber.cn</FONT><BR>
<BR>
<I><FONT SIZE="1">"I think it is very beautiful for the poor to accept their lot [...]. I think the world is being much helped by the suffering of the poor people."</FONT></I><FONT SIZE="1"> </FONT><B><FONT SIZE="1">--Mother Theresa</FONT></B>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>