GitLab 接入 OpenLDAP 配置

操作系统:CentOS6.8
操作账户:root

安装GitLab CE

创建或编辑 /etc/yum.repos.d/gitlab-ce.repo ,填入以下内容:

[gitlab-ce]
name=gitlab-ce
baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key

执行命令安装:

yum makecache
yum install gitlab-ce

Continue reading

GitLab 数据备份与恢复

GitLab 备份

# 可以将此命令写入crontab,以实现定时备份
/usr/bin/gitlab-rake gitlab:backup:create

备份的数据会存储在 /var/opt/gitlab/backups ,除非用户在 gitlab_rails['backup_path'] 另行设定:

[root@hzz ~]# ls -l /var/opt/gitlab/backups
total 24667228
-rw------- 1 git git 12384215040 Oct 19 12:39 1476851754_gitlab_backup.tar
-rw------- 1 git git   506798080 Oct 19 12:43 1476852184_gitlab_backup.tar
-rw------- 1 git git 12368209920 Oct 20 02:17 1476900742_gitlab_backup.tar

Continue reading