这篇文章主要介绍“gitlab如何实现数据备份”的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇“gitlab如何实现数据备份”文章能帮助大家解决问题。

1,全备份

集成包安装:#gitlab-rakegitlab:backup:create源码安装#git-Hbundleexecrakegitlab:backup:createRAILS_ENV=productiondocker安装#dockerexec-tgitlab-rakegitlab:backup:create2,部分备份

db (数据库) uploads (附件) repositories (代码库) builds (CI作业输出日志) artifacts (CI工件) lfs (LFS对象) registry (注册图片) pages (页面内容)

集成包安装:#gitlab-rakegitlab:backup:createSKIP=uploads,repositories,builds,artifacts,lfs,registry,pages源码安装#git-Hbundleexecrakegitlab:backup:createSKIP=uploads,repositoriesRAILS_ENV=productiondocker安装#dockerexec-tgitlab-rakegitlab:backup:createSKIP=uploads,registry,pages3,crontab

集成包安装:07***/opt/gitlab/bin/gitlab-rakegitlab:backup:createCRON=1源码安装07***cd/gitlab目录&&PATH=/usr/local/bin:/usr/bin:/binbundleexecrakegitlab:backup:createRAILS_ENV=productionCRON=1docker安装07***/bin/dockerexec-t/opt/gitlab/bin/gitlab-rakegitlab:backup:createCRON=1

关于“gitlab如何实现数据备份”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识,可以关注亿速云行业资讯频道,小编每天都会为大家更新不同的知识点。