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

Re: Svnadmin create --config-dir

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-08-26 02:36:50 CEST

On 25.08.2005, at 21:53, Gale, David wrote:

>>> Is it possible to have a central config directory for all my
>>> repositories? I'd like to have a separate repository for each
>>> project
>>> (or group of closely related projects), but all the config data
>>> is the
>>> same for each project. I know I can set up a central password file,
>>> but I'd also like to have a central snserve.conf file.
>>
>> I've got the hooks subdir for all my production repositories
>> symlinked
>> to a common directory. I'd imagine the same thing would work for
>> conf,
>> as well.
>
> But when you created the repositories, you had to go in and manually
> replace the hooks directory with a symlink, correct? What I'd really
> like is the ability to have some/most of the standard directories
> automatically pointing to a central location, but it doesn't look like
> such an option exists.

You could write a shell script, and use it to create all your
repositories. Something like this comes to mind:

#!/bin/sh

if [ -z "$1" ] ; then
     echo "Usage: $0 repo-name" 1>&2
     exit 1
fi

svnadmin create --fs-type=fsfs "$1"
rm -rf "$1/conf"
ln -s "/path/to/common/conf" "$1/conf"

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 26 02:38:20 2005

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.