Linux – the best methodology for managing backups of configuration files on unix/linux systems

backupfreeradiuslinuxradiusunix

Hey Serverfault community,

So what are the best practices for managing backups of various configuration files on a production unix/linux systems?

for example, (and why I am asking). I am part of a team managing some production radius servers(FreeRADIUS). We need a way to efficiently manage, document and backup changes to to config files.

Right now I just added a dir with configbackups and just append a date to the backup. The problem is various configs are stored all over the system and there is now way to easily track changes made and quickly restore. plus it becomes a nasty mess in the long run.

Any ideas?

Also, any links to questions or answers that have great ideas/scripts used for backup would be most appreciated.

Thanks!

Best Answer

There are two ways to do this:

One Recommended way is to track and manage all changes using Puppet or Chef. i would prefer Puppet because of its ease of use. Puppet maintains full track of any change in any configuration file on any of its clients, so you can easily track the changes and revert them back as well in case of any problem.

Seconds solution is to manage all your configuration files using SVN, where for example /etc directory will be checked out version of an SVN respository, and whenever you have to make any change in any file, just use svn commit command. This way all of your configuratin files will have revisions maintained by SVN.

I recommend first method, which is little complex but best.