Menu
blog.headdesk.me
blog.headdesk.me

Version control of Linux config with etckeeper

Posted on 2014/03/29

etckeeper

There are a handful of version control tools for Linux but they were not designed to work with system config files. For example, RCS resets the file ownership and permission when a commit is made.

This is when etckeeper comes into play. It works with a number of version control tools such as git and bzr. It restores ownership and permissions automatically. It also places hook in yum or aptitude so whenever you update your packages, config files under /etc are automatically backed up.

Installing etckeeper is fairly easy to do. On most systems, etckeeper is already on the distribution’s repository. If not, it can be installed with the following steps:

[bash]
git clone git://git.kitenet.net/etckeeper
cd etckeeper
vi etckeeper.conf # customize if necessary
make install
etckeeper init
etckeeper commit "initial commit"
[/bash]

Wala, you have installed etckeeper and created an initial commit. To perform version checking or run any vcs commands, do this:

[bash]
etckeeper vcs log
[/bash]

Which is equivalent to running git log under /etc.

Loading

facebookShare on Facebook
TwitterTweet

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Full text search

Recent Posts

  • Upgrade RockyLinux 8 to 9
  • Terraform and segregated permissions
  • LVM Compression and Deduplication
  • Edit gpg encrypted file with vim
  • Lelit Elizabeth PL92T Pressure Tuning
  • aws (8)
  • coffee (1)
  • headfi (1)
  • linux (6)
  • others (59)
  • security (2)
  • tech (36)
  • wordpress (2)

Loading

apache apigateway aws awscli azure backup cloud coffee docker ec2 EL8 ElasticBeanstalk enpass espresso featured kernel lelit linux lvm meltdown MFA nat gateway nginx php proliant python rdp Redhat RHEL rpm Ryzen s2s scp serverless site-to-site smartarray snapshot spectre tech terraform transit gateway ubuntu ubuntu upgrade vpn wordpress

©2023 blog.headdesk.me | Powered by SuperbThemes & WordPress