日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

gitlab上传文件到group_gitlab恢复备份数据

發布時間:2025/4/5 23 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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恢复备份数据的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。