gitlab 默认备份目录:/var/opt/gitlab/backups/

1.编辑 /etc/gitlab/gitlab.rb 文件,找到 backup_path 配置项,修改备份目录

1
2
3
4
5
...

gitlab_rails['backup_path'] = "/data/gitlab/backups"

...

2.创建备份目录:

1
sudo mkdir -p /data/gitlab/backups