summaryrefslogtreecommitdiff
path: root/doc/administration/repository_storages.md
blob: 81bfe173151eb183a42993e3eb6fefb59c6533c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Repository storages

GitLab allows you to define repository storage paths to enable distribution of
storage load between several mount points.

## For installations from source

Add your repository storage paths in your `gitlab.yml` under repositories -> storages, using key -> value pairs.

>**Notes:**
- You must have at least one storage path called `default`.
- In order for backups to work correctly the storage path must **not** be a
mount point and the GitLab user should have correct permissions for the parent
directory of the path.

## For omnibus installations

Follow the instructions at https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/configuration.md#storing-git-data-in-an-alternative-directory