Questions tagged [etckeeper]

etckeeper is a tool to monitor changes to /etc with revision control systems such as git

The upside of etckeeper is the integration in various package managers such as apt or rpm. etckeeper is written in sh, supports own "plugins" via hooks and various revision control systems, including git, mercurial, bazaar, or darcs.

Usually it monitors /etc, but it can be configured to monitor other directorys as well.

23 questions
13
votes
6 answers

Can etckeeper be used to track config files outside of /etc?

Specifically I would like to track my grub.conf (/boot/grub/grub.conf) and some oracle files (i.e. /db/app/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora). I attempted using links; however etckeeper/git only tracks where the link points to,…
ErebusBat
  • 905
  • 4
  • 12
  • 21
13
votes
6 answers

Is there a etckeeper equivalent for Windows? AKA Windows config revision-control

I want to make a central config file repository so that I can have the changes to any config under revision control (Mercurial). This will include some GNU/Linux boxes (which will use etckeeper), the network equipment's config files, printer's…
Ascendant
11
votes
2 answers

How to setup etckeeper with Mercurial in Ubuntu?

I'm interested in installing etckeeper with Mercurial in my Ubuntu system. My reason is that I don't know how to use Git and don't want to learn at the moment. If I check the package description it sounds promising: kent@rat:~$ apt-cache search…
Deleted
  • 1,832
  • 7
  • 23
  • 31
10
votes
5 answers

Is it possible to use etckeeper with a single shared git repository?

I noticed that several people have recommended using etckeeper to apply version control to my /etc directory. It appears to me that the default install puts a repository on the same machine as the /etc you are trying to manage. This works fine for…
Brent
  • 22,219
  • 19
  • 68
  • 102
9
votes
4 answers

etckeeper pushing to github

I set up etckeeper and added the file /etc/etckeeper/commit.d/60github-push in order to push the commit to github. [orschiro@thinkpad etc]$ sudo cat /etc/etckeeper/commit.d/60github-push #!/bin/sh set -e if [ "$VCS" = git ] && [ -d .git ]; then …
orschiro
  • 193
  • 1
  • 5
9
votes
3 answers

etckeeper on custom directory

I have been reading about etckeeper, but I can't work out if you can use it on any other directories other than /etc. There seems to be no reference to /etc in any configuration file (that I can find) so I assue this is hard coded and you can't…
jwbensley
  • 4,122
  • 11
  • 57
  • 89
8
votes
1 answer

etckeeper, Git checkout, and broken file permissions in /etc

I wanted to figure out why, after a etckeeper commit, I had a problem with rebooting (already solved thanks to this great thing). I played with etckeeper, did git checkout some_commit_sha for a quick look and then git checkout master. And it seems…
koddo
  • 205
  • 1
  • 4
7
votes
5 answers

How to store etckeeper repositories on a central server via git

I would like to have one central git repository for all my servers' etckeeper .git repos. Here the suggestion was to use a file in /etc/etckeeper/commit.d, which basically looks like this, assuming that a git repo had been set up in somedir on…
andreas-h
  • 1,054
  • 1
  • 16
  • 27
6
votes
2 answers

How do I turn off etckeeper. It's preventing me from upgrading Ubuntu

I'm trying to upgrade from Ubuntu Karmic to Lucid, but it fails because etckeeper detects changes which happen during sudo do-release-upgrade and prevents the running of apt. How do I temporarily turn it off? Edit: ** etckeeper detected uncommitted…
mclin
  • 163
  • 1
  • 5
5
votes
1 answer

EtcKeeper: Switching from bzr to git

I've been using etckeeper on my Digital Ocean droplet for sometime and have made numerous changes to the /etc since that time. I now realize that i've been using bzr all this time and would like to switch to git; but fear that i shall loose all the…
Quasaur
  • 165
  • 6
5
votes
1 answer

How can I use etckeeper via sudo with different users and have the correct user in the commit message?

I'm working on a server with several admin users. Each of them can use sudo to make configuration changes. We're keepeing our /etc directory version-controlled using etckeeper. However, when I or another admin calls sudo etckeeper commit…
andreas-h
  • 1,054
  • 1
  • 16
  • 27
5
votes
2 answers

Using etckeeper - protection and other questions

Following the suggestion made Putting /etc under source control I have installed ETCKEEPER. It seems pretty good but I have some questions. Is the any way off putting the command you do into the change message. So if I run apt-get install widget I…
justintime
  • 337
  • 3
  • 9
3
votes
2 answers

Why is there no git repository after installing etckeeper?

I installed etckeeper on my ubuntu 11.10 server, and after creating the etckeeper repository with: etckeeper init etckeeper commit "Initial version" I got the error: bzr: ERROR: No changes to commit. Please 'bzr add' the files you want to commit,…
rubo77
  • 2,282
  • 3
  • 32
  • 63
3
votes
2 answers

etckeeper implementation in subversion (SVN)

How to setup etckeeper in subversion (SVN).I get to know that etckeeper works with git , mercurial (hg) etc, but it doesn't works with subversion. I am stuck with this etckeeper implementation in svn... Any further help.....
3
votes
0 answers

Track multiple directories with etckeeper

I'm trying to provide a solution to use etckeeper as a keeper of multiple locations (directories). I'm using Debian 8. With the default config etckeeper "watches" the /etc directory but I want to have /etc and /opt directories monitored. If I use -d…
Sz3jdii
  • 133
  • 6
1
2