Posts Tagged ‘linux’
Tips AdminLinux: Bye to .old .bkp .date files
Last Updated on Monday, 12 April 2010 10:38 Written by macuriel Friday, 9 April 2010 09:27
Today I tried to remember the good practice that performed when modifying configuration files, and how often does. I think we’ve all seen the type files with suffixes .old, .orig, .bkp, .someDate to serve as a pseudo-backup important configuration file.
I will not come to assess whether this method is good or bad, because we should evaluate other factors such as whether the machine is managed by various admins, if a critical server, if it really is documented that nomenclature, etc …
But if I want to mention, and give an example of a methodology that if it is standard, and there is a very high probability of finding it in almost any GNU / Linux: RCS utils.With this system, we have a version control with all its benefits applied to a single file without creating or configure anything extra (or repositories, or demons, or service units), only installing the required package rcs. It is rare that is not installed.
This information has been obtained from RCS Intro – http://www.daemon-systems.org/man/rcsintro.1.html
What operations are usually performed more frequently in a version control system?
- Create new files
- Modify existing file
- Locked to prevent concurrent modifications
- Control versions and add comments to see at a glance this Changelog
- Test differences between versions
- Retrieve all versions
- Control who and when to file an amendment during their life
Based on this short list, put the two commands that allow you to perform them:
co and ci
Read on to see examples …
Tags: linux, sysadmin | Posted under Uncategorized | No Comments