Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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!

share|improve this question
    
What are the characteristics of RCS you need to be absent in the not-RCS tool? –  RedGrittyBrick Apr 8 '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 8 '11 at 10:26
    
A configuration management system (Puppet or similar) can effectively do revision control on your configuration files, and can also set permissions after installing them. –  Mike Renfro Apr 8 '11 at 11:40
add comment

1 Answer

up vote 0 down vote accepted

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.