新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
GitLab中對數(shù)據(jù)進行備份具體實現(xiàn)方法
GitLab 是 Ruby 開發(fā)的自托管的 Git 項目倉庫,可通過Web界面進行訪問公開的或者私人項目,本篇文章重點為大家分享一下GitLab中對數(shù)據(jù)進行備份的具體方法。

成都創(chuàng)新互聯(lián)網(wǎng)絡公司擁有10余年的成都網(wǎng)站開發(fā)建設經(jīng)驗,上千多家客戶的共同信賴。提供做網(wǎng)站、成都做網(wǎng)站、網(wǎng)站開發(fā)、網(wǎng)站定制、賣友情鏈接、建網(wǎng)站、網(wǎng)站搭建、響應式網(wǎng)站設計、網(wǎng)頁設計師打造企業(yè)風格,提供周到的售前咨詢和貼心的售后服務
1,全備份
集成包安裝:
# gitlab-rake gitlab:backup:create
源碼安裝
# git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
docker安裝
# docker exec -t gitlab-rake gitlab:backup:create
2,部分備份
db (數(shù)據(jù)庫) uploads (附件) repositories (代碼庫) builds (CI作業(yè)輸出日志) artifacts (CI工件) lfs (LFS對象) registry (注冊圖片) pages (頁面內(nèi)容)
集成包安裝:
# gitlab-rake gitlab:backup:create SKIP=uploads,repositories,builds,artifacts,lfs,registry,pages
源碼安裝
# git -H bundle exec rake gitlab:backup:create SKIP=uploads,repositories RAILS_ENV=production
docker安裝
# docker exec -t gitlab-rake gitlab:backup:create SKIP=uploads,registry,pages
3,crontab
集成包安裝:
0 7 * * * /opt/gitlab/bin/gitlab-rake gitlab:backup:create CRON=1
源碼安裝
0 7 * * * cd /gitlab目錄 && PATH=/usr/local/bin:/usr/bin:/bin bundle exec rake gitlab:backup:create RAILS_ENV=production CRON=1
docker安裝
0 7 * * * /bin/docker exec -t /opt/gitlab/bin/gitlab-rake gitlab:backup:create CRON=1
網(wǎng)頁名稱:GitLab中對數(shù)據(jù)進行備份具體實現(xiàn)方法
當前URL:http://fisionsoft.com.cn/article/cojpepg.html


咨詢
建站咨詢
