change the data directory gitlab to store repos elsewhere

前端 未结 6 2028
南笙
南笙 2020-12-04 06:13

my basic disk is full for my gitlab installation, is it possible to move the repositories and their data to some other folder and make sure that the upcoming push\'s data is

6条回答
  •  盖世英雄少女心
    2020-12-04 06:56

    you need append this small config bellow:

    git_data_dirs({
        "default" => {
            "path" => "/srv/gitlab/git-data"
        }
    })
    

    And

    rsync -av /var/opt/gitlab/git-data/* /srv/gitlab/git-data/.
    chown -R git:git /srv/gitlab/git-data/
    sudo gitlab-ctl reconfigure
    

    Done.

提交回复
热议问题