gitlab的目录:/var/opt/gitlab/
备份文件默认存放目录:/var/opt/gitlab/backups/
进入cd /var/opt/gitlab/backups/
1、执行备份命令:gitlab-rake gitlab:backup:create
如图所示:
最后在 /var/opt/gitlab/backups 目录下生成
1614232540_2021_02_25_12.8.1-ee_gitlab_backup.tar
2. 恢复备份 gitlab-rake gitlab:backup:restore BACKUP=1614232540_2021_02_25_12.8.1-ee
期间需要输入两次yes。