vzq7jw
Last Updated: February 25, 2016
·
357
· viccuad

quickly change server config

If you want to change multiple server configuration files on a keystroke:

  1. Use a repository to keep track of the /etc directory.
  2. Make use of the repository branches to quickly change the configs, just making a checkout of the branch who has the configs you want.

setting a repo for the config files on server

The easiest way is to use etckeeper, which allows /etc to be stored on a git, mercurial, darcs, or bzr repository. it is packaged for a lost of distros.
Other way is to diy with git, for example.
See my pro-tip "backup server config with a repository" for more info about setting a repo.