所需数据文件

  • *_10.6.4_gitlab_backup.tar
  • gitlab.rb
  • gitlab-secrets.json

image.png

还原操作

  1. # 授权
  2. chmod 777 *_gitlab_backup.tar
  3. # 将文件放到 backup 目录下
  4. mv *_10.6.4_gitlab_backup.tar /opt/gitlab/data/backups/
  5. # 较新版本还原命令 gitlab-backup restore BACKUP=时间戳 。 force=yes 可以不用确认,用于静默恢复
  6. docker exec -it git gitlab-rake gitlab:backup:restore BACKUP= force=yes
  7. # 恢复两个配置文件
  8. gitlab.rb
  9. gitlab-secrets.json

image.png
恢复数据执行中…
image.png
恢复完成
image.png
恢复配置文件至 config 目录下

检查还原

检查项目,配置状态
image.png