Gitlab安装恢复手册
1、环境介绍
系统 |
服务 |
IP |
Centos6.5 |
Gitlab |
172.16.1.141 |
2、安装Gitlab
[root@uat2-app-01 software]# cd /home/software [root@uat2-app-01 software]# ./bitnami-gitlab-8.9.6-0-linux-x64-installer.run [root@uat2-app-01 software]# /home/gitlab/ctlscript.sh start |
3、Gitlab备份与恢复
1、修改备份路径
[root@uat2-app-01 software]# cd /home/gitlab/apps/gitlab/htdocs/config/gitlab.yml ## Backup settings backup: path: "/home/git_bak" # Relative paths are relative to Rails.root (default: tmp/backups/) |
2、备份
[root@uat2-app-01 software]# cd /home/gitlab [root@uat2-app-01 software]# ./use_gitlab [root@uat2-app-01 software]# cd /home/gitlab/apps/gitlab/htdocs [root@uat2-app-01 software]# bundle exec bin/rake gitlab:backup:create RAILS_ENV=production |
3、恢复
[root@uat2-app-01 software]# cd /home/gitlab [root@uat2-app-01 software]# ./use_gitlab [root@uat2-app-01 software]# cd /home/gitlab/apps/gitlab/htdocs [root@uat2-app-01 software]# bundle exec bin/rake gitlab:backup:restore RAILS_ENV=production BACKUP=1495783341 [root@uat2-app-01 software]# chown git:git -R /home/gitlab/apps/gitlab/repositories |