[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some advice: using CVS to do config management

From: Donald Sharp
Subject: Re: Some advice: using CVS to do config management
Date: Thu, 30 Nov 2000 13:21:50 -0500
User-agent: Mutt/1.2.4i

On Thu, Nov 30, 2000 at 07:18:33PM +0100, Graham Leggett wrote:
> Hi all,
> I am trying to use CVS to do some version control on the configuration
> files on some machines that I have. I am trying to set up a pserver
> based CVS server that the machines would check their config files into
> via cron on a regular basis.
> I need to know the best way of checking in the config files to CVS so
> that no human intervention is involved with the day to day running of
> the server. Basically an entire directory of files needs to be checked
> into CVS without any special CVS action needing to be performed if a new
> file is added or created to any of the directories under version
> control.

psuedo code of course.  But I think you'll get the idea:

foreach file( in directory )
        if( cvs status == unknown )
                cvs add <blah>

        cvs commit -m "I'm cool like that" <blah>

> The manual has confused me a bit on which function I should be using to
> do this - Is "cvs import" what I looking for?
> Regards,
> Graham
> -- 
> -----------------------------------------
> address@hidden                "There's a moon
>                                       over Bourbon Street
>                                               tonight..."
> _______________________________________________
> Info-cvs mailing list
> address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]