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

Re: Using SVN to version configuration files.

From: Mark <mark_at_mitsein.net>
Date: 2006-11-08 07:12:24 CET

Looking into your actual svn repository, you won't actually find your
files. svn stores them in its own format. So yes, you'll have to
check them out to see them.

For what you are describing, you'd likely be better off just using
RCS. Create an RCS directory in your /etc/nagios directory, check
them all in, then you can use RCS to control changes.

co -l services.cfg
vi services.cfg
ci -u -m'added a service' services.cfg

On 11/7/06, Matthew Joyce <MJoyce@ccia.unsw.edu.au> wrote:
> 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

"Blessed is he who finds happiness in his own foolishness, for he will
always be happy."
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:13:01 2006

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