|Home||Switchboard||Unix Administration||Red Hat||TCP/IP Networks||Neoliberalism||Toxic Managers|
May the source be with you, but remember the KISS principle ;-)
Skepticism and critical thinking is not panacea, but can help to understand the world better
Confstore is not really a baseliner as it does not produce a report. It is a simple Perl script that creates a tar archive of selected configuration files. GPL license. Code is pretty convoluted and some design decisions are questionable. It was not updated since 2004.
Confstore is a configuration backup utility. It scans a system for all recognised configuration files and then stores them in a simple archive. It knows what to scan for by reading a definitions file.
Confstore can also restore configuration from backup archives it has previously created.
CONFSTORE README +-> TABLE OF CONTENTS | |-> Introduction |-> Requirements |-> Running confstore |-> Definitions explanation |-> Restoring configuration |-> Configuring confstore: cs.conf |-> Contributing definitions |-> Confstore modules |-> The Master Archive |-> Logging |-> Archive encryption + Introduction Confstore is a configuration backup utility. Confstore scans your system for all recognised configuration files and then stores them in a archive. Confstore can also restore configuration from a previously created archive. Confstore is solely maintained and written by mastodon and any comments/suggestions should be posted in the Open Discussion forum on the confstore Sourceforge Project page or mailed to email@example.com. + Requirements Confstore requires the following to run: - Linux/UNIX based OS (confstore is currently developed and tested on Gentoo Linux) [www.gentoo.org] - Perl 5.x (tested on 5.8.0, 5.8.2 and 5.8.4 but should run on most versions) [http://www.perl.com] - tar Optional requirements: - bzip2 (for bzip compression) - gzip (for gzip compression) - Getopt::Long (*should* come standard with Perl) - Net::FTP (if you are planning on using confstores FTP module (should come standard)) - MIME::Lite (if you want to use the Email module) - Digest::MD5 (if you are using the logging function which creates md5 checksums) - Crypt::CipherSaber (if you want to encrypt your archives) (For information regarding the installation of Perl modules, see the FAQ file) + Running confstore To get started, type: './confstore.pl --help' This should print the following: confstore v0.5.4 -- A configuration backup and restoration utility Usage: confstore.pl [FLAGS] Flags for creating backup archives of configuration -s Scan (required) -v=0/1/2 Verbose level -d=filename Specify a definitions file -o=filename Name of the the archive (without the .tar.x) -c=comptype Type of compression (bz2, gz or none) -ds=y/n Datestamp the archive -f Upload archive to a FTP server -m Mail archive to an Email account -e Encrypt the archive Flags for restoring configuration -r=archive Restore configuration from an archive (required) -cs=configset Specify a configset to restore (required) Misc flags -de=archive Decrypt an encrypted archive -p=password Password (required if passing -e or -de) Remember, these flags takes higher precedence than cs.conf options. (e.g. If verbose level in cs.conf is set to 0, but you pass -v=2, then the verbose level will be 2) So for example, if you wanted to create a configuration backup, called mybackup, and you wanted it to be compressed using gzip: bash-2.05b$ ./confstore.pl -s -o=mybackup -c=gz Starting confstore v0.5.4 (http://confstore.sourceforge.net) at Thu Aug 12 18:37:29 BST 2004 + Scanning system... + Creating archive of configuration files... + Archiving files with: /bin/tar cfP mybackup-2004-08-12.tar
... + Adding compression... + Done: mybackup-2004-08-12.tar.gz If you want more detailed output, try passing the -v flag with a value of 1 or 2 (-v=1 or -v=2) + Definitions explanation Confstore knows what to scan for by reading a definition file. The default definition file is locations.def, which can be found (along with other definition files) in defs/. Confstore definition files have a simple layout which makes editing and adding config paths a breeze. Heres a sample: PHP:/usr/local/lib/php.ini Apache:/usr/local/apache/conf/httpd.conf:/usr/local/apache/conf/access.conf The first word at the beginning of each line is the configset, i.e. the application to which the configuration belongs. Each configset can have an infinate number of paths to configuration. The configset is seperated from the paths by a colon, :, and each path is also seperated by a colon. To add more configuration definitions to your existing definitions file, simply add a path to the end of an exiting configset or create a new configset. Confstore also supports wildcards in definition files. E.g. If you are running OpenBSD which has various hostname files in /etc with different extensions, you can add hostname.* to your definition file (this is already included in the defs/openbsd.def file) As of 0.5.4, confstore can also understand environmental variables such as $HOME and $CVSROOT: fluxbox:$HOME/.fluxbox/menu Of course you can create your own custom definition files aswell and load them by passing the -d flag at the command line. Confstore is relying greatly on you, the users, to help build the default locations.def to a much greater size, and list paths to most common software. README section, Contributing definitions, explains how you can help out. + Restoring configuration Confstore has the ability to read archives that it has previously created and restore configuration from them. *Note: this will only work with archives made with v0.4 or higher of confstore All you need to know is the path to your archive and which configset you want to restore. The restore process is initiated using the -r and -cs flags: ./confstore.pl -r=/home/user/backup.tar.bz2 -cs=Apache This will bring you to the restore prompts. Here you can either view both the config files, 'v', restore the config file, 'y', or not restore it, 'n'. + Configuring confstore: cs.conf Confstore has various settings you can alter which are stored in cs.conf. Confstore looks for cs.conf in the current directory so make sure its there, or change the $CS_CONFIG_PATH variable in confstore.pl. There are various options in cs.conf, and they are all annotated so the easiest way to learn what you can configure is to look at cs.conf. As with definition files, cs.conf also supports comments. + Contributing definitions Confstore needs your help with building the main definitions file and submitting custom ones! Please post your definitions files somewhere on the confstore SourceForge forums (preferably Open Discussion) or mail them to firstname.lastname@example.org. Any custom definition files are also welcome I.E. definition files made for specific OSes/setups All contributions are greatly appreciated! (include your name/site and youll get a mention in the next release ;) + Confstore modules Confstore has various modules written specifically for it. These modules give added features that some users may want to use. The modules can be found in the modules/ dir. At the moment there are two modules, the FTP and Email modules. To use these modules, simply pass either the -f or -m options. MODULE FILENAME HOW DO I CHANGE THE SETTINGS? FTP modules/Ftp.pm cs.conf Mailer modules/Mailer.pm cs.conf ** NOTE: Prior to 0.5.4, all module variables were stored in the module scripts themselves. All module settings are now in cs.conf so there is no need to touch the module scripts. + The Master Archive A master archive is an archive of all the configuration you have ever backed up. If you have the master archive feature enabled, after each time you run confstore, the configuration you have just backed-up will be added to the master archive, in a datestamped folder. To enable the master archive, you need to edit the 'masterarchive' option in cs.conf and then set the 'masterloc' option. Enter a full path and an archive name with an extension. Confstore will read the extension and add the compression you want. Make sure 'masterloc' points to an archive thats in a folder that _already_ exists otherwise confstore will fall over, moaning about some directory that doesnt exist. (so if masterloc points to /home/user/backup/MASTER.tar.gz, make sure the directory /home/user/backup exists. Dont worry about the archive, it will be created automatically) + Logging To enable logging, change the log_results and log_locations values in cs.conf. confstore logs the creation of backup archives and the restoration of them. With logging enabled, the following will be added to your log file when you create a backup archive: exact time of the scan, the name of the output archive, an md5 checksum of the archive, the definition file in use for the scan, and finally whether the archive has been mailed or FTPed anywhere. As previously mentioned, confstore also logs restores and each time you restore some configuration from an archive. The following details are added to the log: archive name, the configset being restored, the names of the files that were answered 'y' to, and the total number of files restored. + Archive encryption As of v0.5.2, confstore can encrypt archives that it has created. To encrypt an archive, simply pass the -e and -p flags when creating the archive. -e tells confstore that the archive should be encrypted and -p is the password you want to encrypt the archive with (-p is required with -e): ./confstore.pl -s -e -p=password Confstore uses the CipherSaber symmetric-key file encryption system which is implemented through the Crypt::CipherSaber module. If you would like further information on CipherSaber then visit the homepage at: http://ciphersaber.gurus.com/ Once the archive has been encrypted (you'll know an archive is encrypted by the .cpa extension which stands for confstore Protected Archive), the only way to make it readable again is to decrypt it using the -de flag. Again this requires the -p flag so you can submit the password: ./confstore.pl -de=archive.tar.bz2.cpa -p=password If the password is correct, confstore will decrypt the archive, creating a new readable one; the encrypted archive remains intact and its up to you what you do with it. If you get the password wrong, you will have no sign that you got it wrong. However when you try to decompress the resulting "decrypted" archive, you'll find it isnt decrypted and that there is no way of accessing it. So you'll have to pass the -de and -p flags and try again if you get the password wrong. ------- Until next release, mastodon 12/08/2004 email@example.com http://confstore.sourceforge.net/
Groupthink : Two Party System as Polyarchy : Corruption of Regulators : Bureaucracies : Understanding Micromanagers and Control Freaks : Toxic Managers : Harvard Mafia : Diplomatic Communication : Surviving a Bad Performance Review : Insufficient Retirement Funds as Immanent Problem of Neoliberal Regime : PseudoScience : Who Rules America : Neoliberalism : The Iron Law of Oligarchy : Libertarian Philosophy
War and Peace : Skeptical Finance : John Kenneth Galbraith :Talleyrand : Oscar Wilde : Otto Von Bismarck : Keynes : George Carlin : Skeptics : Propaganda : SE quotes : Language Design and Programming Quotes : Random IT-related quotes : Somerset Maugham : Marcus Aurelius : Kurt Vonnegut : Eric Hoffer : Winston Churchill : Napoleon Bonaparte : Ambrose Bierce : Bernard Shaw : Mark Twain Quotes
Vol 25, No.12 (December, 2013) Rational Fools vs. Efficient Crooks The efficient markets hypothesis : Political Skeptic Bulletin, 2013 : Unemployment Bulletin, 2010 : Vol 23, No.10 (October, 2011) An observation about corporate security departments : Slightly Skeptical Euromaydan Chronicles, June 2014 : Greenspan legacy bulletin, 2008 : Vol 25, No.10 (October, 2013) Cryptolocker Trojan (Win32/Crilock.A) : Vol 25, No.08 (August, 2013) Cloud providers as intelligence collection hubs : Financial Humor Bulletin, 2010 : Inequality Bulletin, 2009 : Financial Humor Bulletin, 2008 : Copyleft Problems Bulletin, 2004 : Financial Humor Bulletin, 2011 : Energy Bulletin, 2010 : Malware Protection Bulletin, 2010 : Vol 26, No.1 (January, 2013) Object-Oriented Cult : Political Skeptic Bulletin, 2011 : Vol 23, No.11 (November, 2011) Softpanorama classification of sysadmin horror stories : Vol 25, No.05 (May, 2013) Corporate bullshit as a communication method : Vol 25, No.06 (June, 2013) A Note on the Relationship of Brooks Law and Conway Law
Fifty glorious years (1950-2000): the triumph of the US computer engineering : Donald Knuth : TAoCP and its Influence of Computer Science : Richard Stallman : Linus Torvalds : Larry Wall : John K. Ousterhout : CTSS : Multix OS Unix History : Unix shell history : VI editor : History of pipes concept : Solaris : MS DOS : Programming Languages History : PL/1 : Simula 67 : C : History of GCC development : Scripting Languages : Perl history : OS History : Mail : DNS : SSH : CPU Instruction Sets : SPARC systems 1987-2006 : Norton Commander : Norton Utilities : Norton Ghost : Frontpage history : Malware Defense History : GNU Screen : OSS early history
The Peter Principle : Parkinson Law : 1984 : The Mythical Man-Month : How to Solve It by George Polya : The Art of Computer Programming : The Elements of Programming Style : The Unix Haterís Handbook : The Jargon file : The True Believer : Programming Pearls : The Good Soldier Svejk : The Power Elite
Most popular humor pages:
Manifest of the Softpanorama IT Slacker Society : Ten Commandments of the IT Slackers Society : Computer Humor Collection : BSD Logo Story : The Cuckoo's Egg : IT Slang : C++ Humor : ARE YOU A BBS ADDICT? : The Perl Purity Test : Object oriented programmers of all nations : Financial Humor : Financial Humor Bulletin, 2008 : Financial Humor Bulletin, 2010 : The Most Comprehensive Collection of Editor-related Humor : Programming Language Humor : Goldman Sachs related humor : Greenspan humor : C Humor : Scripting Humor : Real Programmers Humor : Web Humor : GPL-related Humor : OFM Humor : Politically Incorrect Humor : IDS Humor : "Linux Sucks" Humor : Russian Musical Humor : Best Russian Programmer Humor : Microsoft plans to buy Catholic Church : Richard Stallman Related Humor : Admin Humor : Perl-related Humor : Linus Torvalds Related humor : PseudoScience Related Humor : Networking Humor : Shell Humor : Financial Humor Bulletin, 2011 : Financial Humor Bulletin, 2012 : Financial Humor Bulletin, 2013 : Java Humor : Software Engineering Humor : Sun Solaris Related Humor : Education Humor : IBM Humor : Assembler-related Humor : VIM Humor : Computer Viruses Humor : Bright tomorrow is rescheduled to a day after tomorrow : Classic Computer Humor
The Last but not Least Technology is dominated by two types of people: those who understand what they do not manage and those who manage what they do not understand ~Archibald Putt. Ph.D
Copyright © 1996-2018 by Dr. Nikolai Bezroukov. www.softpanorama.org was initially created as a service to the (now defunct) UN Sustainable Development Networking Programme (SDNP) in the author free time and without any remuneration. This document is an industrial compilation designed and created exclusively for educational use and is distributed under the Softpanorama Content License. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available to advance understanding of computer science, IT technology, economic, scientific, and social issues. We believe this constitutes a 'fair use' of any such copyrighted material as provided by section 107 of the US Copyright Law according to which such material can be distributed without profit exclusively for research and educational purposes.
This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Grammar and spelling errors should be expected. The site contain some broken links as it develops like a living tree...
|You can use PayPal to make a contribution, supporting development of this site and speed up access. In case softpanorama.org is down you can use the at softpanorama.info|
The statements, views and opinions presented on this web page are those of the author (or referenced source) and are not endorsed by, nor do they necessarily reflect, the opinions of the author present and former employers, SDNP or any other organization the author may be associated with. We do not warrant the correctness of the information provided or its fitness for any purpose.
Last modified: September 12, 2017