Etckeeper
Från Charlottendal
Installera etckeeper med apt-get install etckeeper Kör etckeeper init & etckeeper commit Skapas lokalt repo med filer från /etc
editera .gitignor i /etc efter behov
Remote repo Skapa user git
sudo useradd -c "Git central repo user" -k /dev/null -m git Editera /etc/shells, lägg till /usr/bin/git-shell
sudo usermod -s /usr/bin/git-shell git
Konfigurerar git as root
git config --global push.default simple
Skapa ssh-nyckel
ssh-keygen -t ed25519 -f ~/.ssh/id_gitlocal cat ~/.ssh/id_gitlocal.pub emacs ~/.ssh/config
cd /etc emacs etckeeper/etckeeper.conf git branch -m master rasp1 git remote add etckeeper ssh://gitlocal/~/code/etckeeper 177 git push -u etckeeper master:rasp1 178 git push -u etckeeper :rasp1 179 git push -u etckeeper :rasp1 180 git push -u etckeeper HEAD:rasp1 184 git remote -v show etckeeper
etckeeper commit git push
Referenser
http://etckeeper.branchable.com/ https://wiki.archlinux.org/index.php/etckeeper http://serverfault.com/questions/28973/is-it-possible-to-use-etckeeper-with-a-single-shared-git-repository