Is it possible to change the directory where the subversion repositories are created?

Hi!
I am currently testing scm-manager on a Rocky Linux 9 machine, and was wondering if there is any way to specify the subversion repositories directory. I did notice that the repositories created with scm-manager seem to be created within a specific ID directory, and the data stored under /data. (Which already makes me think there is no way to modify the repositories directories but asking just in case…)

Let’s say that I already have Subversion installed on this machine, with the following paths set in my subversion.conf file:


LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so

<Location /svn>
  DAV svn

  SVNParentPath /myPath/svn/repo
  SVNListParentPath on

  ## Subversion Auth Setting
  ## --------------------------
  AuthType Basic
  AuthName "Subversion Repository Authenticated Zone"
  AuthUserFile /myPath/svn/conf/svn_passwdfile
  AuthzSVNAccessFile /myPath/svn/conf/svn_accessfile
  Require valid-user
</Location>

Is there any way to set the path /myPath/svn/repo on scm-manager so the data is created there instead? I do know how to modify the base directory of scm-manager itself, but couldn’t find any way of only modifying the repositories path.

Also, I was wondering what would happen if another software such as TortoiseSVN creates a directory on that repositories path, as I can see that scm-manager.conf is created under each repository’s /data directory.

Thank you for your time!
Best regards.

Hi @martinperucki ,

SCM-Manager keeps all repository related data in one directory, including all metadata related to the repository. By default, this is the directory with the repository id you find in the repositories folder. It is possible to move this complete directory to wherever you like. You just have to adapt the path in the repository-paths.xml file in the config directory (this can be an absolute path, too). It is not possible to specify the path for the “raw” repository data alone, though (the data directory in the repository). Having that said, if you want to/have to move this folder alone, I think that a symlink should work nonetheless.

Hope this helps
René

Hi @pfeuffer
Understood!
Thank you for your reply.