Gitlab备份文件位置(Omnibus安装)


21

我已经使用omnibus安装包安装了Gitlab。

我使用以下命令进行了备份

sudo gitlab-rake gitlab:backup:create

备份已成功创建。但是我不确定在哪里可以找到备份文件。默认情况下,所有Gitlab备份都存储在哪里?

Answers:


23

/var/opt/gitlab/backups 默认。

https://gitlab.com/gitlab-org/gitlab-ce/blob/a64d0f79173301dd86db073e9b6a329b56554dbd/doc/raketasks/backup_restore.md表示:

该归档文件将保存在backup_path中(请参阅config / gitlab.yml)

然后https://gitlab.com/gitlab-org/omnibus-gitlab/blob/9e97671d8dee3ea6a7bbb99347ad279b65689f28/files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb#L208说它使用了模板变量@backup_path

并且https://gitlab.com/gitlab-org/omnibus-gitlab/blob/9e97671d8dee3ea6a7bbb99347ad279b65689f28/files/gitlab-cookbooks/gitlab/attributes/default.rb#L120说:

default['gitlab']['gitlab-rails']['backup_path'] = "/var/opt/gitlab/backups"

我建议您克隆GitLab omnibus并git grep解决其他类似问题,并建议在gitlab上发布SO的问题:在那里接受gitlab,并且开发人员流量更大。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.