Etckeeper: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Die Seite wurde neu angelegt: „=Install= *apt-get install git etckeeper“ |
Keine Bearbeitungszusammenfassung |
||
| (16 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
=Install= | =Install= | ||
*apt-get install git etckeeper | *apt-get install git etckeeper | ||
=ssh key to the git server= | |||
*ssh-copy-id git@caprica | |||
=Config= | |||
*/etc/etckeeper/etckeeper.conf | |||
<pre> | |||
VCS="git" | |||
GIT_COMMIT_OPTIONS="" | |||
HG_COMMIT_OPTIONS="" | |||
BZR_COMMIT_OPTIONS="" | |||
DARCS_COMMIT_OPTIONS="-a" | |||
AVOID_DAILY_AUTOCOMMITS=1 | |||
AVOID_COMMIT_BEFORE_INSTALL=1 | |||
HIGHLEVEL_PACKAGE_MANAGER=apt | |||
LOWLEVEL_PACKAGE_MANAGER=dpkg | |||
PUSH_REMOTE="origin" | |||
</pre> | |||
folgende Befehle ausfuehren (ohne Email kommt es zu einem fatal error) | |||
*git config --global user.name "Username" | |||
*git config --global user.email "user@domain.de" | |||
*git config --global core.editor "vim" | |||
*git config --global push.default simple | |||
*git config user.name "Username" | |||
*git config user.email "user@domain.de" | |||
*git config push.default simple | |||
=Initialize etckeeper= | |||
*cd /etc | |||
*etckeeper init | |||
*git remote add origin git@HOSTNAME:REPONAME | |||
*etckeeper commit "Initial commit." (ACHTUNG: DIESEN BEFEHL NUR EINMALIG UND ZWAR BEI DER INITIALISIERUNG AUSFUEHREN.) | |||
*git push -u origin master | |||
=Handling= | |||
*echo 8.8.4.4 google2 >> /etc/hosts | |||
*git commit -a -m hosts | |||
*git push | |||
=Links= | |||
*https://www.thomas-krenn.com/de/wiki/Etc-Verzeichnis_mit_etckeeper_versionieren | |||
*https://coderwall.com/p/v1agsg/installing-etckeeper-to-store-config-with-autopush-to-git-in-ubuntu-14-04-lts | |||
Aktuelle Version vom 27. April 2018, 11:08 Uhr
Install
- apt-get install git etckeeper
ssh key to the git server
- ssh-copy-id git@caprica
Config
- /etc/etckeeper/etckeeper.conf
VCS="git" GIT_COMMIT_OPTIONS="" HG_COMMIT_OPTIONS="" BZR_COMMIT_OPTIONS="" DARCS_COMMIT_OPTIONS="-a" AVOID_DAILY_AUTOCOMMITS=1 AVOID_COMMIT_BEFORE_INSTALL=1 HIGHLEVEL_PACKAGE_MANAGER=apt LOWLEVEL_PACKAGE_MANAGER=dpkg PUSH_REMOTE="origin"
folgende Befehle ausfuehren (ohne Email kommt es zu einem fatal error)
- git config --global user.name "Username"
- git config --global user.email "user@domain.de"
- git config --global core.editor "vim"
- git config --global push.default simple
- git config user.name "Username"
- git config user.email "user@domain.de"
- git config push.default simple
Initialize etckeeper
- cd /etc
- etckeeper init
- git remote add origin git@HOSTNAME:REPONAME
- etckeeper commit "Initial commit." (ACHTUNG: DIESEN BEFEHL NUR EINMALIG UND ZWAR BEI DER INITIALISIERUNG AUSFUEHREN.)
- git push -u origin master
Handling
- echo 8.8.4.4 google2 >> /etc/hosts
- git commit -a -m hosts
- git push