1. 程式人生 > >5.GitLab 修改repo儲存路徑

5.GitLab 修改repo儲存路徑

1.修改倉庫路徑
git_data_dirs({ "default" => { "path" => "目標路徑" } })

2.gitlab-ctl reconfigure

3.gitlab-ctl stop

4.rsync -av /var/opt/gitlab/git-data/repositories 目標路徑

5.gitlab-ctl upgrade

6.ls 目標路徑  // 雙重確認

7.gitlab-ctl start


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