Fwd: [shlugcore] Joey Hess: announcing etckeeper
Ben Luo
benluo at gmail.com
Tue Nov 6 20:57:22 CST 2007
Dear All,
Are there somebody interested on hg?
Regards,
Ben Luo
---------- Forwarded message ----------
From: Zheng YAN <zhengy at gmail.com>
Date: Nov 6, 2007 4:00 PM
Subject: [shlugcore] Joey Hess: announcing etckeeper
To: shlugcore at googlegroups.com
Sent to you by Zheng YAN via Google Reader:
Joey Hess: announcing
etckeeper<http://kitenet.net/%7Ejoey/blog/entry/announcing_etckeeper/>
via Planet Debian <http://planet.debian.org/> on 11/5/07
Keeping /etc in git and other version control systems has been talked about
and attempted by lots of people. I tried it with CVS, but that was a joke,
with svn, but it sucked, now with git I actually have something I think I'm
happy enough about to use.
There's already a tool to do this, but I was not really impressed with
isisetup <http://www.isisetup.ch/>. After considerable pain to find the
source code (download links that resolve to 192.168. addresses are niice), I
found that it was pretty old and had lots of weird hardcoded things like
server names, and it wants to be a git porcelin with its own set of commands
for manipulating the /etc repository. I don't want that, I just want a
simple setup procedure that lets me use regular git commands to manage the
repo.
So instead I followed the lead of
these<http://www.jukie.net/%7Ebart/blog/20070312134706>
blogs<http://bryan-murdock.blogspot.com/2007/07/put-etc-under-revision-control-with-git.html>combined
with David Härdeman's
metastore for solving the metadata storage problem. I also hacked in a
solution to the empty directory storage problem, and a few other issues with
trying to use git for this thing that it was not really designed for.
I'm very happy with the way it works, you just run "etckeeper init" and then
can commit etc as usual with the file permissions etc included in the
commits. Clone the same repo to elsewhere and again "etckeeper init" is all
you need to restore those permissions (be sure to not clone the repo to a
world readable directory, as there is a window when files would be
readable).
Automatically committing changes at the end of apt runs is also a handy
feature. :-)
etckeeper <http://kitenet.net/%7Ejoey/blog/../code/etckeeper/> is currently
only available from git. ftp-master is down so I can't upload packages, but
both it and metastore can be built from git easily enough:
git clone git://git.hardeman.nu/metastore.git; cd metastore; dpkg-buildpackage
git clone git://git.kitenet.net/etckeeper; cd etckeeper; dpkg-buildpackage
Things you can do from here:
- Subscribe to Planet
Debian<http://www.google.com/reader/view/feed%2Fhttp%3A%2F%2Fplanet.debian.org%2Frss20.xml?source=email>using
*Google Reader*
- Get started using Google
Reader<http://www.google.com/reader/?source=email>to easily keep up
with
*all your favorite sites*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20071107/f238965d/attachment.htm
More information about the Mercurial
mailing list