1ETCKEEPER(8)                                                      ETCKEEPER(8)
2
3
4

NAME

6       etckeeper - store /etc in git, mercurial, bazaar, or darcs
7

SYNOPSIS

9       etckeeper command [-d directory]
10

DESCRIPTION

12       etckeeper  manages /etc be stored in a git, mercurial, bazaar, or darcs
13       repository. By default each of the commands operates  on  /etc,  but  a
14       different  directory can be specified to operate on a clone of the /etc
15       repository located elsewhere.
16

COMMANDS

18       init   This initialises and sets up a git, mercurial, bazaar, or  darcs
19              repository (depending on the VCS setting in /etc/etckeeper/etck‐
20              eeper.conf). Typically this is run in /etc once when starting to
21              use  etckeeper on a machine. It can also be used to initialise a
22              clone of the /etc repository located elsewhere.
23
24       commit [message]
25              Commits all changes in /etc to the repository. A commit  message
26              can  be specified. You may also use the underlying VCS to commit
27              manually.  (Note that etckeeper commit will notice if a user has
28              used sudo or su to become root, and record the original username
29              in the commit.)
30
31       pre-commit
32              This is called as a pre-commit hook. It stores metadata and does
33              sanity checks.
34
35       pre-install
36              This  is  called  by  apt's  DPkg::Pre-Install-Pkgs  hook, or by
37              equivalent hooks of other package managers. It allows committing
38              any uncommitted changes before packages are installed, upgraded,
39              etc.
40
41       post-install
42              This is called by apt's DPkg::Post-Invoke hook, or by equivalent
43              hooks  of  other  package  managers.  It commits changes made by
44              packages into the repository. (You can also call  this  by  hand
45              after running dpkg by hand.)
46
47       unclean
48              This returns true if the directory contains uncommitted changes.
49
50       update-ignore [-a]
51              This  updates the VCS ignore file. Content outside a "managed by
52              etckeeper" block is not touched.  This  is  generally  run  when
53              upgrading to a new version of etckeeper. (The -a switch will add
54              a "managed by etckeeper" block if one is not present.)
55
56       vcs subcommand [options ...]
57              You can use this to run any subcommand of the VCS that etckeeper
58              is configured to run. It will be run in /etc. For example, "etc‐
59              keeper vcs diff" will run "git diff", etc.
60
61       uninit [-f]
62              This command DESTROYS DATA! It is the inverse of the  init  com‐
63              mand,  removing  VCS information and etckeeper's own bookkeeping
64              information from the directory. Use with caution. A typical  use
65              case  would  be  to  run  etckeeper  uninit,  then  modify etck‐
66              eeper.conf to use a different VCS, and then run etckeeper  init.
67              (The -f switch can be used to force uninit without prompting.)
68

FILES

70       /etc/etckeeper/etckeeper.conf is the configuration file.
71
72       /etc/etckeeper  also  contains directories containing the programs that
73       are run for each of the above commands.
74

ENVIRONMENT VARIABLES

76       ETCKEEPER_CONF_DIR path to configuration directory instead  of  default
77       /etc/etckeeper.
78

SEE ALSO

80       /usr/share/doc/etckeeper/README.md.gz
81

AUTHOR

83       Joey Hess <id@joeyh.name>
84
85
86
87                                                                  ETCKEEPER(8)
Impressum