git_data_dirs([{ "default" => {"path" => "/home/gitlab/git-data"} }) # 也可以添加多个仓库,default是默认仓库,如果需要切换到其他设定仓库,则可以在界面的管理员设置中修改 git_data_dirs([{ "default" => {"path" => "/home/gitlab/git-data"}, "alternative" => {"path" => "/home...
注意的是:自GitLab 8.10开始,可以通过在/etc/gitlab/gitlab.rb文件中添加下面的几行配置, 来增加多个 git 数据存储目录。 git_data_dirs({ "default" => { "path" => "/var/opt/gitlab/git-data" }, //默认存储目录 "alternative" => { "path" => " /home/gitlab-data" } //备用存储目录 }...
git_data_dirs({"default"=> {"path"=>"/var/opt/gitlab/git-data"},//默认存储目录"alternative"=> {"path"=>" /server/gitlab-data"}//备用存储目录}) 备用目录,顾名思义应该是第一个目录满了或者出错就会使用备用目录,正常就是满了
git_data_dirs({"default"=>{"path"=>"/var/opt/gitlab/git-data"},//默认存储目录"alternative"=>{"path"=>" /home/gitlab-data"}//备用存储目录})
git_data_dirs({ "default" => { "path" => "/home/gitlab/gitlab-data"}, "alternative" => { "path" => "/var/opt/gitlab/git-data/repositories"} }) 1. 2. 3. 4. 自动备份(可选) 1、编辑/etc/gitlab/gitlab.rb,设定备份路径,备份权限以及备份保留时间。
git_data_dirs({"default"=> {"path"=>"/home/gitlab/git-data"} }) 添加配置信息 第一次配置信息,需要一定的时间,请耐心等待,直到最后看到gitlab Reconfigured! 表示配置完成。 [root@localhost ~]# gitlab-ctl reconfigure ... ... ...
git_data_dirs({ "default" => { "path" => "/var/opt/gitlab/git-data" }, //默认存储目录 "alternative" => { "path" => " /home/gitlab-data" } //备用存储目录 ———
From planning to production, bring teams together in one application. Ship secure code more efficiently to deliver value faster.
: https://docs.gitlab.com/omnibus/settings/configuration.html#store-git-data-in-an-alternative-directory ###! *If you want to use a single non-default directory to store git data use a ###! that doesn't contain symlinks.** git_data_dirs({ "default" => { "path" => "/home...
You now have the option to distribute storage load over multiple mount points. Simply define the alternative mount points in your gitlab.rb file:git_data_dirs({ "default" => "/var/opt/gitlab/git-data", "alternative" => "/mnt/nas/git-data" }) In the GitLab admin area you are ...