I heard once that in Linux it's possible to put whole /etc/ directory into repository. In fact i already done too much crap on server and I quite disoriented what exactly is setup in there at all.

Question is how to put FreeBSD all configuration files under Revision Control?

Is there's any solution for that like packages which helps to automatize this? (The only i know is etckeeper which is for Linux)

  • Do you just want to put all your config-files under version control? I don't understand what you mean with packages. Version control is unvisersal, yet not automatic. If you change something, you commit the changes so that you can revert later. Or do you mean something entirely else? – Alexander Janssen Oct 8 '12 at 17:58
  • Yeap I mean tracing down configuration changes like rcs and etckeeper (this one uses git/mercurial) does. I don't speak about puppet style stuff – holms Oct 8 '12 at 18:02
  • See also unix.stackexchange.com/q/3750/9454 – Martin Schröder Jul 14 '17 at 11:21

If you just want to track the changes of your own configurations on the same local host, you can happily use RCS.

A wonderful and easy howto is available on the internet.

  • it's basically tracks files that you know about. with time I even keep forgeting what I did on that server at all. Git style revisioning would be REALLY handy. etckeeper doesn't exists on freebsd =/ – holms Oct 8 '12 at 18:13
  • But even GIT doesn't track automatically all the files unless you run a cron job which checks for changes periodically. You still need to check them it. Although I don't know about etckeeper. – Alexander Janssen Oct 8 '12 at 18:17
  • Sure , git doesn't do this by him self, there's few hooks for this. That's why etckeeper appeared. and I basically asking about etckeeper alternative for freebsd. – holms Oct 8 '12 at 18:18
  • So you want changes automatically commited as soon as they have been made? – Alexander Janssen Oct 8 '12 at 18:20
  • 2
    Finally found it, etckeeper keeps track of owner/permission in additional metadata. git doesn't do this. and all those automaticall system changes like cron is just ignored in there. so I would like to have this package in bsd =) – holms Oct 11 '12 at 2:34

It isn't the same, and I wish someone would submit patches to etckeeper to support pkg, but an alternative might be to just snapshot the entire filesystem, if your /etc is on zfs.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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