LWN.net Logo

/etc is a good candidate

/etc is a good candidate

Posted Aug 6, 2008 21:33 UTC (Wed) by rickmoen (subscriber, #6943)
In reply to: /etc is a good candidate by nix
Parent article: Git Magic

nix wrote:

Storing /etc in git seems like a bad idea to me, as git doesn't preserve permissions (other than the executable bit), ownership information, hard links, or any type of file other than regular files and directories.

etckeeper's author (Joey Hess) was well aware of this; that's why it uses metastore to encode that information transparently, so that git can track it.

(etckeeper's integration into Debian/*buntu package management is also a killer advantage, over just checking /etc into an RCS: Changes to /etc resulting from a package operation get checked in automatically.)

Rick Moen
rick@linuxmafia.com


(Log in to post comments)

/etc is a good candidate

Posted Aug 7, 2008 0:25 UTC (Thu) by bronson (subscriber, #4806) [Link]

It doesn't use metastore anymore.  A certain lwn reader didn't like having a big binary-only
file in /etc and sent Joey some patches to replace it with a text file and simple find
commands.  ~March 17-20, 2008

I like etckeeper.  When the bad stuff starts flying, it sure is nice to be able to roll back
to a known good config.  And the cryptographic integrity makes a nice sanity check.

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds