Git server config backup

From campisano.org
Jump to navigation Jump to search

GIT as server config backup

from


apt-get install etckeeper git-core metastore
cd /etc
etckeeper uninit
rm -rf .git .gitignore .etckeeper
nano etckeeper/etckeeper.conf # use VCS="git", AVOID_DAILY_AUTOCOMMITS=1, AVOID_COMMIT_BEFORE_INSTALL=1
etckeeper init
git add .
git config user.name root
git config user.email root@localhost
etckeeper commit "Etckeeper initial commit."