Sunny wrote:
> On Wed, Sep 17, 2008 at 1:55 PM, Jon Schewe <jpschewe at mtu.net> wrote:
>   
>> I've got a number of servers that have similar configs. The configs that
>> I make manually I'm keeping in subversion so that we can track changes.
>> Right now I'm pushing them out to the servers using rsync. The problem
>> that I've run into is that if someone is debugging a problem on the
>> server they make changes to the server and if they forget to push the
>> changes back into subversion the next time the sync script pushes the
>> files out the changes get overwritten. I would rather be notified on the
>> next sync that something on the server has been changed since the last sync.
>>
>> Has anyone done something like this and have a good solution? I've
>> thought about unison, and that would probably work, the downside is that
>> it always needs to be run from the same machine otherwise it doesn't
>> know the state of the last sync and there are two admins that both may
>> sync from their workstations.
>>
>> Thanks.
>>
>>     
>
> Use post-commit hooks in your svn repository to push the changes to
> the servers. That way, changes will propagate only if they are
> committed in the repo.
>
>
>   
That's a good way to kick the script off, but doesn't handle the case
where someone modifies the server and not the repository, which is where
the problem is right now.

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature. See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels nor
demons, neither the present nor the future, nor any powers,
neither height nor depth, nor anything else in all creation, will
be able to separate us from the love of God that is in Christ
Jesus our Lord. - Romans 8:38-39