Comments on Using Version Control For Your /etc Directory With etckeeper And Bazaar On Debian Squeeze

Using Version Control For Your /etc Directory With etckeeper And Bazaar On Debian Squeeze This tutorial explains how you can store the contents of your /etc directory in a version control system (VCS) with the help of etckeeper on Debian Squeeze. etckeeper hooks into Debian's package manager apt so that whenever you install/remove a package with apt, etckeeper will commit all changes to the /etc directory to your VCS; it also tracks file metadata such as permissions which is important for files such as /etc/shadow. Using etckeeper, you can go back to a previous version of /etc if an update has overwritten valuable configuration files. Not only will etckeeper track apt's changes to /etc, it will also do a daily auto-commit so that your manual changes go to VCS as well; in addition to that, you can do commits at any time manually.

2 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Markus Gattol

Good article, I've written the same with git as etckeeper's backend: http://www.markus-gattol.name/ws/scm.html#etckeeper

By: Senthil

Below is a link to the same topic that might be useful:

http://tech.snathan.org/tech/svn/using_subversion_to_version_control_etc

It has a script at the end to automate most of the tasks for accomplish this.