How to store etckeeper repositories on a central server via git

Posted by andreash on Server Fault See other posts from Server Fault or by andreash
Published on 2010-05-22T17:31:30Z Indexed on 2010/05/22 17:41 UTC
Read the original article Hit count: 292

Filed under:
|

Hello, 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 somehost:

#!/bin/sh
cd /etc
git push faruser@farhost:somedir

The problem with this is, that it would be really nice to have all servers in the same repo on the central server. I tried

git push faruser@farhost:somedir/server1

but that failed.

As you can see, I've never worked with git before ... Any ideas on how this can be accomplished is greatly appreciated :)

Cheers,

Andreas

© Server Fault or respective owner

Related posts about git

Related posts about etckeeper