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

相关文章:

  • 2021-11-03
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 2022-02-18
  • 2022-01-12
  • 2021-12-10
  • 2022-12-23
猜你喜欢
  • 2021-10-24
  • 2022-01-18
  • 2021-09-10
  • 2021-12-10
  • 2022-03-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案