# Rake tasks

> 原文：[https://docs.gitlab.com/ee/raketasks/README.html](https://docs.gitlab.com/ee/raketasks/README.html)

*   [Available Rake tasks](#available-rake-tasks)

# Rake tasks[](#rake-tasks-core-only "Permalink")

GitLab 为常见的管理和操作流程提供[Rake](https://ruby.github.io/rake/)任务.

使用以下命令执行 GitLab Rake 任务：

*   `gitlab-rake <raketask>` for [Omnibus GitLab](https://docs.gitlab.com/omnibus/README.html) installations.
*   `bundle exec rake <raketask>` for [source](../install/installation.html) installations.

## Available Rake tasks[](#available-rake-tasks "Permalink")

以下是可用的 Rake 任务：

| Tasks | Description |
| --- | --- |
| [Back up and restore](backup_restore.html) | 在服务器之间备份，还原和迁移 GitLab 实例. |
| [Clean up](cleanup.html) | 从 GitLab 实例中清除不需要的项目. |
| [Development](../development/rake_tasks.html) | GitLab 贡献者的任务. |
| [Doctor tasks](../administration/raketasks/doctor.html) | 检查数据完整性问题. |
| [Elasticsearch](../integration/elasticsearch.html#gitlab-elasticsearch-rake-tasks) | 在 GitLab 实例中维护 Elasticsearch. |
| [Enable namespaces](features.html) | 为用户项目启用用户名和名称空间. |
| [General maintenance](../administration/raketasks/maintenance.html) | 常规维护和自检任务. |
| [Geo maintenance](../administration/raketasks/geo.html) | [与地理](../administration/geo/replication/index.html)相关的维护. |
| [GitHub import](../administration/raketasks/github_import.html) | 从 GitHub 检索和导入存储库. |
| [Import repositories](import.html) | 将裸仓库导入您的 GitLab 实例. |
| [Import large project exports](../development/import_project.html#importing-via-a-rake-task) | 导入大型 GitLab [项目出口](../user/project/settings/import_export.html) . |
| [Integrity checks](../administration/raketasks/check.html) | 检查存储库，文件和 LDAP 的完整性. |
| [LDAP maintenance](../administration/raketasks/ldap.html) | [LDAP](../administration/auth/ldap/index.html)相关任务. |
| [List repositories](list_repos.html) | 磁盘上所有由 GitLab 管理的 Git 存储库的列表. |
| [Migrate Snippets to Git](migrate_snippets.html) | 将 GitLab 代码片段迁移到 Git 存储库并显示迁移状态 |
| [Praefect Rake tasks](../administration/raketasks/praefect.html) | [与 Praefect](../administration/gitaly/praefect.html)相关的任务. |
| [Project import/export](../administration/raketasks/project_import_export.html) | 准备[项目的进出口](../user/project/settings/import_export.html) . |
| [Sample Prometheus data](generate_sample_prometheus_data.html) | 生成样本 Prometheus 数据. |
| [Repository storage](../administration/raketasks/storage.html) | 列出现有项目和附件并将其从旧存储迁移到哈希存储. |
| [Uploads migrate](../administration/raketasks/uploads/migrate.html) | 在本地存储和对象存储之间迁移上载. |
| [Uploads sanitize](../administration/raketasks/uploads/sanitize.html) | 从上传到早期版本的 GitLab 的图像中删除 EXIF 数据. |
| [User management](user_management.html) | 执行用户管理任务. |
| [Webhooks administration](web_hooks.html) | 维护项目 Webhooks. |
| [X.509 signatures](x509_signatures.html) | 更新 X.509 提交签名，如果证书存储已更改，则很有用. |