14

I would like to put my /etc directory iunder source control using bazaar.

Are there any gotchas in doing this. It seems safer to do it user an ordinary user rather than root - might there a be a problem with .bzr belonging to such a user.

3 Answers3

15

You should look at using etckeeper, instead of trying to reinvent the wheel.

ThatGraemeGuy
  • 15,788
4

Could be overkill for a single system (unless you need to 'rebuild' it from time to time) but the usual solution for configuration management is to use some scm like cfEngine, Puppet, bcfg2 , or the like, and then put their data under source control.

Luke404
  • 6,028
  • 6
  • 49
  • 59
1

Here's a way using SVN and cron to manage /etc. I suppose it could be adapted.

Chris Nava
  • 1,157