Gitlan备份、迁移、恢复
Gitlab备份
登入服务器
gitlab-rake gitlab:backup:create
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/f514c914007df7cd890cb535c44dc5fd.png)
查看/var/opt/gitlab/backup/是否有备份文件
cd /var/opt/gitlab/backup
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/5ff39488a209e46942db2e4a704fbdc6.png)
1625196016:时间戳
2021_07_02:年月日
13.7.0:版本号
gitlab_backup:gitlab备份
Gitlab迁移
将备份好的文件拷到安装了Gitlab的另一台服务器,讲备份文件放置/var/opt/gitlab/backup/,并授予权限