f— stage: Enablement group: Distribution info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments comments: false —
Rake 任务
极狐GitLab 提供 Rake 任务来帮助您完成常见的管理和操作流程。
您可以使用以下命令执行 GitLab Rake 任务:
-
gitlab-rake <raketask>
用于 Omnibus GitLab 安装实例。 -
bundle exec rake <raketask>
用于源实例安装。
可用的 Rake 任务
任务 | 描述 |
---|---|
General maintenance | 一般维护和自检任务。 |
Geo maintenance | 与 Geo 相关的维护。 |
GitHub import | 从 GitHub 检索和导入仓库。 |
Integrity checks | 检查仓库、文件、LDAP 等的完整性。 |
LDAP maintenance | 与 LDAP 相关的任务。 |
Praefect Rake tasks | 与 Praefect 相关的任务。 |
SMTP maintenance | 与 SMTP 相关的任务。 |
Repository storage | 列出现有项目和附件并将其从旧存储迁移到哈希存储。 |
Reset user passwords | 使用 Rake 重置用户密码。 |
Uploads migrate | 在本地存储和对象存储之间迁移上传。 |
Uploads sanitize | 从上传到早期版本的极狐GitLab 的镜像中删除 EXIF 数据。 |
列出所有可用的 Rake 任务:
# Omnibus GitLab
sudo gitlab-rake -vT
# Installations from source
cd /home/git/gitlab
sudo -u git -H bundle exec rake -vT RAILS_ENV=production