Advice on Storing /etc in a VCS?

Solution 1:

You could use etckeeper to handle it, which would let you use git, mercurial, darcs, or bzr for the repository.

Solution 2:

Use etckeeper to do it for you. There's lot of reasons for this:

  • You will forget to use VCS on occasion; etckeeper hooks into package managers, giving you a pre-inst and post-inst state to roll back to
  • You will screw up file permissions
  • You will screw up handling the shadow passwd file