etckeeper is a collection of tools to let /etc be stored in a git, mercurial, darcs, or bzr repository. It hooks into apt (and other package managers including yum and pacman-g2) to automatically commit changes made to /etc during package upgrades. It tracks file metadata that revison control systems do not normally support, but that is important for /etc, such as the permissions of /etc/shadow. It's quite modular and configurable, while also being simple to use if you understand the basics of working with revision control.

etckeeper is available in git at git://, or in gitweb. It's packaged in Debian, Ubuntu, Fedora, etc.


version 1.12

etckeeper 1.12 released with these changes

  • Portability fixes. Thanks, Harald Dunkel.
  • Add support for pushing to multiple remote repositories. Thanks, Rouben.
  • Fix handling of git ignores like dir/* Thanks, Pim van den Berg
version 1.11

etckeeper 1.11 released with these changes

  • Fix too broad matching of .gitignored files. Closes: #732339
version 1.10

etckeeper 1.10 released with these changes

  • Remove lvm/backup from default ignores, because lvm documentation recommends backing that up, for use by vgcfgrestore.
  • Fix exporting of some git variables. Closes: #728583