Manage configurations

File Keeper

© Lead Image © Konstantin Sleptsov, 123RF.com

© Lead Image © Konstantin Sleptsov, 123RF.com

Article from Issue 203/2017
Author(s):

Etckeeper keeps order in global configuration files and prevents problems with accidentally deleted files.

Linux and other Unix-style systems have the advantage of storing configurations in easily readable and editable text files. According to the Linux Foundation's Filesystem Hierarchy Standard (FHS) [1], personal and user-specific configuration files go in the home directory and global configurations land in /etc. In the Linux file tree, the /etc directory used to stand for "et cetera"; today it is also interpreted as "editable text configuration."

The many files stored in /etc and its subdirectories provide an abundant variety of configuration possibilities for interested users. You can tweak the behavior of init scripts, system components, and network services by editing files within the /etc directory. But with all this power comes danger. An inadvertent or ill-advised change to a configuration file could render your system unusable. Perhaps more commonly, multiple changes to /etc configuration files in the heat of a troubleshooting session can be difficult to track or reconstruct when it is time to document what you just did or where you started.

Etckeeper [2] is an innovative tool that lets you impose a version control system on the /etc directory using popular VCS utilities such as Git, mercurial, bazaar, or darcs. Etckeeper can track metadata, including metadata that Git doesn't usually track, such as file permissions, and Etckeeper will interact directly with several common package managers to manage /etc configuration changes during package installation and upgrades.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Kup

    KDE's Kup tool uses Rsync and techniques from the Git version control environment for sophisticated backup with an easy GUI interface.

  • Workspace: Subversion

    Even if you are not a programmer, you’ve probably heard of Subversion, a powerful tool for managing changes to software projects. Although Subversion is designed primarily for software developers, it can be useful to mere mortals as well.

  • Git 101

    When several people collaborate on source code or documents, things can get messy fast. Git provides a quick cure: The distributed versioning system reliably ensures the integrity and consistency of data with minimal effort.

  • Free Software Projects

    The /etc/ directory contains thousands of files, and it is easy to lose an office document in its murky depths. Managing directories files via FTP can be time consuming. We'll investigate utilities that help you keep track of your files. Also in this issue: Trouble at Debian and Future Fears, starring Dunc Tank, Anthony Towns, and Matthew Garret.

  • Perl: CMS with GitHub

    With its easy-to-use web interface, GitHub can be put to totally different uses than archiving code. For example, Perlmeister Mike Schilli used GitHub to deploy a content management system for simple websites.

comments powered by Disqus

Direct Download

Read full article as PDF:

Price $2.95

News