0

I'm looking for a simple revision control system for server configs. Something like works like git, but preserves Unix file permissions. And is NOT RCS.

Any tips?

Thanks!

Frank Brenner
  • 175
  • 5
  • 11
  • What are the characteristics of RCS you need to be absent in the not-RCS tool? – RedGrittyBrick Apr 08 '11 at 10:11
  • why not just write a small bash script that logs /restores the permissions on each versioned file, and check that into the vcs also ? Generally i think the reason most systems dont do it automatically is because its alot more hassle than its worth with regards to file ownership and checkouts going to more than one client. – Sirex Apr 08 '11 at 10:26
  • A configuration management system ([Puppet](http://www.puppetlabs.com/) or similar) can effectively do revision control on your configuration files, and can also set permissions after installing them. – Mike Renfro Apr 08 '11 at 11:40

1 Answers1

0

You may want to look at etckeeper

It does well with /etc perms, and can be extended to work outside /etc.

Also git by itself, can be extended with hooks:

http://www.kernel.org/pub/software/scm/git/docs/githooks.html

poisonbit
  • 797
  • 4
  • 6