gitlab上传文件到group_gitlab恢复备份数据
生活随笔
收集整理的這篇文章主要介紹了
gitlab上传文件到group_gitlab恢复备份数据
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在新服務器上恢復其他服務器上備份的gitlab數據
需要注意的是新服務器的gitlab的版本和源服務器上的gitlab版本必須一致的,獲取版本的命令
#gitlab-rake gitlab:env:infoSystem informationSystem:CentOS 7.6.1810Proxy:noCurrent User:gitUsing RVM:noRuby Version:2.4.5p335Gem Version:2.7.6Bundler Version:1.16.6Rake Version:12.3.1Redis Version:3.2.12Git Version:2.18.1Sidekiq Version:5.2.1Go Version:unknownGitLab informationVersion:11.5.1-eeRevision:cab68f5Directory:/opt/gitlab/embedded/service/gitlab-railsDB Adapter:postgresqlDB Version:9.6.8URL:http://gitlab.xiaomawang.comHTTP Clone URL:http://gitlab.xiaomawang.com/some-group/some-project.gitSSH Clone URL:git@gitlab.xiaomawang.com:some-group/some-project.gitElasticsearch:noGeo:noUsing LDAP:yesUsing Omniauth:yesOmniauth Providers: GitLab ShellVersion:8.4.1Repository storage paths:- default: /data1/gitlab/git-data/repositoriesHooks:/opt/gitlab/embedded/service/gitlab-shell/hooksGit:/opt/gitlab/embedded/bin/git這里的版本是Version:11.5.1-ee那么新服務器上需要安裝Version:11.5.1-ee這個版本的gitlab服務
#yum install gitlab-ee-11.5.1#gitlab-ctl reconfigure#gitlab-ctl restart啟動服務即可下邊執行恢復的動作#gitlab-ctl stop unicorn#gitlab-ctl stop sidekiq備份文件的名字(1589317383_2020_05_13_11.5.1-ee_gitlab_backup.tar)執行恢復的命令#gitlab-rake gitlab:backup:restore BACKUP=1589317383_2020_05_13_11.5.1-ee之后重啟gitlab服務就可以了 #gitlab-ctl restart附加備份的腳本
#!/bin/bash/usr/bin/gitlab-rake gitlab:backup:create CRON=1總結
以上是生活随笔為你收集整理的gitlab上传文件到group_gitlab恢复备份数据的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 新飞电器复工最新消息 高管团队已确定
- 下一篇: 充电桩板块的股票 关注的人很多值得投资者