git迁移
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了git迁移,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1199字,纯文字阅读大概需要2分钟。
内容图文
安装git
wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/scientific/6/gitlab-ce-11.7.5-ce.0.el6.x86_64.rpm/download.rpm
rpm -ivh gitlab-ce-11.7.5-ce.0.el6.x86_64.rpm
1.迁移新gitlab应该与旧版本一致
版本
[root@nexus gitlab]# cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
12.3.5
2.完整备份旧服务器数据
/opt/gitlab/bin/gitlab-rake gitlab:backup:create
完成备份
[root@gtitlab backups]# ll
total 15674184
-rw------- 1 git git 3998894080 Apr 20 18:25 1618914320_2021_04_20_11.7.5_gitlab_backup.tar
-rw------- 1 git git 3999989760 May 6 17:35 1620293695_2021_05_06_11.7.5_gitlab_backup.tar
-rw------- 1 git git 4025702400 May 6 18:14 1620296044_2021_05_06_11.7.5_gitlab_backup.tar
-rw------- 1 git git 4025774080 May 6 18:23 1620296584_2021_05_06_11.7.5_gitlab_backup.tar
[root@gtitlab backups]#
还原备份数据到新主机gitlab
[root@nexus gitlab]# gitlab-rake gitlab:backup:restore BACKUP=1620296584_2021_05_06_11.7.5
[root@nexus gitlab]# pwd
/var/opt/gitlab
[root@nexus gitlab]#
启动 等待启动完成 访问
gitlab-ctl start
gitlab-ctl status
gitlab-ctl stop
ip 和port 在 gitlab里nginx中的配置文件
路径:cat /var/opt/gitlab/nginx/conf/gitlab-http.conf,可以自定义编写。
内容总结
以上是互联网集市为您收集整理的git迁移全部内容,希望文章能够帮你解决git迁移所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。