HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

etckeeper — Track system configuration files in Git. More information: <https://manned.org/etckeeper>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
etckeeperconfigurationcommandfilesclitrackgitsystem
linux

Problem

How to use the etckeeper command: Track system configuration files in Git. More information: <https://manned.org/etckeeper>.

Solution

etckeeper — Track system configuration files in Git. More information: <https://manned.org/etckeeper>.

Set up a Git repo and perform various setup tasks (run from /etc):
sudo etckeeper init


Commit all changes in /etc:
sudo etckeeper commit {{message}}


Run arbitrary Git commands:
sudo etckeeper vcs {{status}}


Check if there are uncommitted changes (only returns an exit code):
sudo etckeeper unclean


Destroy existing repo and stop tracking changes:
sudo etckeeper uninit

Code Snippets

Set up a Git repo and perform various setup tasks (run from `/etc`)

sudo etckeeper init

Commit all changes in `/etc`

sudo etckeeper commit {{message}}

Run arbitrary Git commands

sudo etckeeper vcs {{status}}

Check if there are uncommitted changes (only returns an exit code)

sudo etckeeper unclean

Destroy existing repo and stop tracking changes

sudo etckeeper uninit

Context

tldr-pages: linux/etckeeper

Revisions (0)

No revisions yet.