源服务器:

ip: 192.168.0.199

系统:CentOS7.2

内核: 3.10.0-327

gitlab版本: gitlab-ce-8.0.5

新服务器:

ip: 192.168.0.190

系统:CentOS7.2

内核: 3.10.0-327

gitlab版本: gitlab-ce-8.0.5

还原步骤:

1. 拷贝源服务器的备份tar包

[root@n2 backups]# scp  root@192.168.0.199:/var/opt/gitlab/1480269625_gitlab_backup.tar /var/opt/gitlab/backups/

2.添加执行权限

[root@n2 backups]# chmod +x 1480269625_gitlab_backup.tar

3.还原 

[root@n2 backups]# gitlab-rake gitlab:backup:restore  BACKUP=1480269625

#BACKUP后的数字一定要跟tar包一样
4.过程
gitlab的还原

5. 访问
gitlab的还原

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2021-12-05
猜你喜欢
  • 2021-10-15
  • 2021-07-14
  • 2022-12-23
  • 2021-08-05
  • 2022-01-28
  • 2021-06-04
相关资源
相似解决方案