一、gitlab部署
1.参考网站 https://about.gitlab.com/downloads/#centos6
2.部署步骤:
2.1. Install and configure the necessary dependencies
sudo yum install curl openssh-server openssh-clients postfix cronie
sudo service postfix start
sudo chkconfig postfix on
sudo lokkit -s http -s ssh
2.2 Add the GitLab package server and install the package
yum clean all
新建 /etc/yum.repos.d/gitlab-ce.repo,内容为
touch /etc/yum.repos.d/gitlab-ce.repo
你的CentOS/RHEL版本:
[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
再执行
sudo yum makecache
sudo yum install gitlab-ce
清华大学 TUNA 协会最初叫清华
或者RPM包安装
rpm -ivh gitlab-ce-8.6.5-ce.0.el6.x86_64.rpm
2.3Configure and start GitLab
sudo gitlab-ctl reconfigure
2.4Browse to the hostname and login
------------------------------------------------------------------------------------------------------------------------------------------------------
安装后的配置文件目录:
主文件:/etc/gitlab/
主配置文件:/var/opt/gitlab/
/opt/gitlab/
日志目录:/var/log/gitlab/
二、目录以及备份迁移
1. 安装和配置必要的依赖关系Install and configure the necessary dependencies
如果你安装postfix发送邮件,请选择“网站设置”中。而不是使用后缀也可以用邮件或 配置自定义SMTP服务器。如果你想使用的进出口,请 配置为SMTP服务器。
在CentOS7,下面的命令将在系统防火墙打开HTTP和SSH访问。
yum install curl openssh-server postfix
systemctl enable sshd postfix
systemctl start sshd postfix
firewall-cmd –permanent –add-service=http
systemctl reload firewalld
2. 添加gitlab包服务器安装包Add the GitLab package server and install the package
curl -sS https://packages.gitlab.com/inst ... ab-ce/script.rpm.sh| sudo bash
yum install gitlab-ce
3. 配置并启动gitlab Configure and start GitLab
gitlab-ctl reconfigure
gitlab-ctl status
gitlab-ctl stop
gitlab-ctl start
这个是如何备份 http://dev.jmd4you.vbst.net/help/raketasks/backup_restore.md
备份和恢复omnibus-gitlab配置
创建一个应用程序备份
恢复备份的应用程序
使用non-packaged数据库备份和恢复
上传备份到远程存储(云)
手动管理备份目录
基本上都在/var/opt/gitlab/ http://doc.gitlab.com/omnibus/settings/configuration.html
Gitlab 创建备份
使用Gitlab一键安装包安装Gitlab非常简单, 同样的备份恢复与迁移也非常简单. 使用一条命令即可创建完整的Gitlab备份: