美文网首页
GitLab 冷备恢复

GitLab 冷备恢复

作者: ZhiXiong | 来源:发表于2020-05-17 09:48 被阅读0次

    一· 安装相同版本 Gitlab

    参考
    https://about.gitlab.com/install/

    二. 将备份配置文件恢复

    rsync -a etc/gitlab/* /etc/gitlab/ -v
    gitlab-ctl reconfigure
    

    三. 将备份数据文件恢复

    cp xxxxxx_xxxx_xx_xx_12.7.6-ee_gitlab_backup.tar /var/opt/gitlab/backups/
    chown git.git /var/opt/gitlab/backups/xxxxxx_xxxx_xx_xx_12.7.6-ee_gitlab_backup.tar
    
    gitlab-backup restore BACKUP=xxxxxx_xxxx_xx_xx_12.7.6-ee
    
    gitlab-ctl reconfigure
    gitlab-ctl restart
    gitlab-rake gitlab:check SANITIZE=true
    

    参考文档:

    https://docs.gitlab.com/ee/raketasks/backup_restore.html#restore-for-omnibus-gitlab-installations

    相关文章

      网友评论

          本文标题:GitLab 冷备恢复

          本文链接:https://www.haomeiwen.com/subject/wrvcqhtx.html