# repositoryDirectory Variable missing in 2.x?

**URL:** <https://community.cloudogu.com/t/repositorydirectory-variable-missing-in-2-x/522>\
**Category:** SCM-Manager Bug Reports\
**Created:** [February 10, 2022, 8:47am UTC](https://community.cloudogu.com/t/repositorydirectory-variable-missing-in-2-x/522 "2022-02-10T08:47:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![stillcantexitvim](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/stillcantexitvim/32/1771_2.png) [@stillcantexitvim](https://community.cloudogu.com/u/stillcantexitvim)\
**Post date:** [February 10, 2022, 8:47am UTC](https://community.cloudogu.com/t/repositorydirectory-variable-missing-in-2-x/522/1 "2022-02-10T08:47:06Z")

</div>

Hi,  
I’m trying to implement SCM-Manager 2.30 on a Rhel system. Previously we’ve always used v1.6. The configuration we’ve used was using repositories on different partitions, and configured git/svn with the “repositoryDirectory” variable in the configuration. This was available from both the web interface as the config/svn.xml and config/git.xml. I can’t find the option to point to a different path in the plugin interface anymore, and setting the option in the XML seems to be ignored. Is there any way to use the repositoryDirectory variable or an alternative option for achieving this?

---

<div class="post-metadata">

**Author:** ![eheimbuch](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/eheimbuch/32/18_2.png) [@eheimbuch](https://community.cloudogu.com/u/eheimbuch)\
**Post date:** [February 10, 2022, 9:09am UTC](https://community.cloudogu.com/t/repositorydirectory-variable-missing-in-2-x/522/2 "2022-02-10T09:09:13Z")

</div>

Hey @stillcantexitvim,

could you look here? Maybe this will help you migrating your repository paths.

> [@Migration from v1 to v2 in docker](https://community.cloudogu.com/t/migration-from-v1-to-v2-in-docker/486):
>
> Hello all, I would like to migrate from 1.60 to newest possible version (2.30.1) but also do it from one server to another (completely new system). I would like to run it also in docker. Currently our all repositories are in two directories - /opt/svn and /opt/git and home directory of scm manager is in /opt/scm-server. I installed scm on a new machine and mounted /var/lib/scm from container to /opt/scm\_home on host. From documantation and from this topic [Migrate from v1 to v2 and moving to a n…](https://community.cloudogu.com/t/migrate-from-v1-to-v2-and-moving-to-a-new-server-in-one-go/263)

---

<div class="post-metadata">

**Author:** ![stillcantexitvim](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/stillcantexitvim/32/1771_2.png) [@stillcantexitvim](https://community.cloudogu.com/u/stillcantexitvim)\
**Post date:** [February 10, 2022, 10:40am UTC](https://community.cloudogu.com/t/repositorydirectory-variable-missing-in-2-x/522/3 "2022-02-10T10:40:21Z")

</div>

Thank you, unfortunately for this server we have repositories but no previous SCM-Manager installed yet, so I cannot call the migration option from fresh install. Is it possible to point symlink the expected git/svn directories to the actual location on the filesystem then?

From that other topic I see the part:

- The repository folders `/opt/git` and `/opt/svn` should be mounted to `/var/lib/scm/repositories/git` and `/var/lib/scm/repositories/svn` .

Right now the /var/lib/scm/repositories folder does not exist yet, is that something that gets created or can we point the repositories directory somewhere in a configuration file?

---

<div class="post-metadata">

**Author:** ![pfeuffer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/pfeuffer/32/72_2.png) [@pfeuffer](https://community.cloudogu.com/u/pfeuffer)\
**Post date:** [February 10, 2022, 11:22am UTC](https://community.cloudogu.com/t/repositorydirectory-variable-missing-in-2-x/522/4 "2022-02-10T11:22:45Z")

</div>

Ah, ok, so you would like to kind of “import” the existing repositories into a fresh SCM-Manager installation. Is it important to keep the location of the repositories? Otherwise you do the following:

- In your fresh installation, manually create a repository in SCM-Manager for each repository you have on disk.
- For each such repository you will find a folder `<scm-home>/repositories/<some-id>`
- In these folders, you will find further folders, one of them is `data`. This is the folder with the “native” git, svn or hg repository.
- Stop SCM-Manager
- Now you can move the`<scm-home>/repositories/<some-id>` to wherever you want them to be
- The new paths have to be set in the `<scm-home>/config/repository-paths.xml` file (you can use absolute paths starting with a `/` here)
- You can replace the files in the `data` directories with the repository files from your (bare) repositories
- start SCM-Manager again

Please mind, that this is some manual fiddling, so be careful and don’t try this without a proper backup. Also make sure that SCM-Manager has proper read and write access to the folders. SCM-Manager will run a basic “health check” on the repositories.

---

<div class="post-metadata">

**Author:** ![stillcantexitvim](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/stillcantexitvim/32/1771_2.png) [@stillcantexitvim](https://community.cloudogu.com/u/stillcantexitvim)\
**Post date:** [February 10, 2022, 11:37am UTC](https://community.cloudogu.com/t/repositorydirectory-variable-missing-in-2-x/522/5 "2022-02-10T11:37:53Z")

</div>

Thank you, this seems to be what I was looking for!

---

<div class="post-metadata">

**Author:** ![felix.ebert](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/felix.ebert/32/1554_2.png) [@felix.ebert](https://community.cloudogu.com/u/felix.ebert)\
**Post date:** [July 22, 2022, 9:35am UTC](https://community.cloudogu.com/t/repositorydirectory-variable-missing-in-2-x/522/6 "2022-07-22T09:35:51Z")

</div>

Closed on July 22, 2022, 9:35am UTC

I have closed this thread since there was no activity in the last 30 days.
