[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Using SVN to version configuration files.

From: Matthew Joyce <MJoyce_at_ccia.unsw.edu.au>
Date: 2006-11-08 07:05:48 CET

Hi,

First post, so hello to all.

I have a couple of Debian Linux machines, which I use to run Nagios, a
network monitoring application.
The config for Nagios is text based, typically a collection of text
files.
The files can be a bit fiddly, so generally I TAR up[ the whole folder
before making significant changes.

I was thinking perhaps SVN might be useful here; make some changes test
them and commit them. Nice to be able to roll back should things not
work out.

I've installed SVN from Debian Sarge's apt repository, svn v1.1.4-2.
I'm not sure I fully understand how SVN works in practice, this is what
I have done :

Made a repository folder
        /usr/local/svn/nagios

Create a SVN repository
        svnadmin create /usr/local/svn/nagios/

Imported my live Nagios config
        svn import /usr/local/nagios/etc file:///usr/local/svn/nagios

What would be intuitive for me, would be to carry on and edit my config
files, test them, be happy with them.
Then, commit the changes I've made to SVN as a new version of the files.

What I'm not clear on is, the files in /usr/local/nagios, are they my
nagios config files, or are they SVNs version of the most recent files ?
Rather, is it ok to edit these files, or should I 'checkout' a copy of
these files to work on and then commit them, back to the live system ?

If I need to check them out, then it's going to be difficult to test
them, as they won't be in the right place (for nagios).

Or do I move all the config files to start with, import them, and then
use checkout to put them in their natural operating location.
I have two Nagios machines, would I then checkout the committed config
to the alternate device ?

Well, I hope I've articulated what I'm trying to achieve, well enough
for someone to offer useful advice.

Thanks

Matthew Joyce
02 9382 0051 | IT Manager | Children's Cancer Institute Australia for
Medical Research

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 8 07:06:26 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.