From owner-freebsd-questions@FreeBSD.ORG Fri Jun 1 23:03:12 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 140E716A400 for ; Fri, 1 Jun 2007 23:03:12 +0000 (UTC) (envelope-from redchin@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id 7CDBA13C468 for ; Fri, 1 Jun 2007 23:03:11 +0000 (UTC) (envelope-from redchin@gmail.com) Received: by ug-out-1314.google.com with SMTP id u2so366908uge for ; Fri, 01 Jun 2007 16:03:10 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cju4g6Myc28M99+w+OAiHItUrEjh26e0HqQhEIBhMvFXZRFb6/oAFGpg524Puvy4UYO7oYwOxfNKpRhwUfm+UxboubCFq1V6i/ohNquUFIk8h8lbc7qQ8LpuJGriLw2Mr6LPoPo0VS2/RI3+J5yt3Zj7DuLp9d0vgy17fKailmA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Kkxac+5Qvm0nc0wPLr6iImylwFGHezG9Qx2HG5F43vy9tzVNBjlsDr6+MK+vSt5Ovtxaz06+a8y3It+a28tzGBexXGY5fkMcc56ELZQJlInA1Zxk021ZnAiinyNUWPdOnLvJnPw9oexK1vfVhxmiXxCMCz1/SCp10VkPE0ql84Q= Received: by 10.66.242.19 with SMTP id p19mr1108344ugh.1180738990328; Fri, 01 Jun 2007 16:03:10 -0700 (PDT) Received: by 10.67.99.20 with HTTP; Fri, 1 Jun 2007 16:03:10 -0700 (PDT) Message-ID: <1d3ed48c0706011603k5948510ctb49e399aa2ace22f@mail.gmail.com> Date: Fri, 1 Jun 2007 16:03:10 -0700 From: "Kevin Downey" To: freebsd-questions@freebsd.org In-Reply-To: <26ddd1750706011227g224eaa1dh93233400c704595e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <26ddd1750706011227g224eaa1dh93233400c704595e@mail.gmail.com> Subject: Re: Recommendations for config file revision control X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 23:03:12 -0000 On 6/1/07, Maxim Khitrov wrote: > Hi everyone, > > I'm currently setting up a new server, and I'd like to keep track of > all changes made to various config files (in /etc, /usr/local/etc, and > a few other places perhaps). My first thought was to setup a > subversion server which would contain the partial directory structure > that matches that of the server's starting at /. It would contain > versioned copies of all the configuration files that I want to keep > track of in their appropriate locations. What I would do then is write > a hook for subversion that will issue an automatic export command > (don't want .svn directories everywhere) every time a commit is made > to the repository. So to edit some configuration file I would first > checkout a working copy of the repository to some other location, make > the change and commit it. The server would be automatically updated > with the new file and I would be able to keep track of every change. > > This seems like a decent strategy to me, but before I go off writing > the scripts and setting up the server I wanted to ask what you guys > might be using to keep track of the server configuration (backups > don't count)? Is there an easier way of doing the same thing, for > example, eliminating the need to do a working copy checkout first? > Perhaps a way to monitor certain files for changes, and automatically > commit them every time a change is saved. I'd be glad to hear any > suggestions you might have in this regard. If possible, I'd like all > the versioned files to contain an id string, so that it's easy to > determine when the file was last changed and by whom, but this is > optional. For the most part I just need a way of going back to > previous versions. > > Thanks, > Maxim Khitrov What is the objection to having the metadata directories (.svn) everywhere? devel/bazaar-ng is rather nice, and distributed vcs is very flexible. -- "The biggest problem with communication is the illusion that it has occurred." G. B. Shaw www.thelastcitadel.com