Rake tasks
GitLab provides Rake tasks for common administration and operational processes.
GitLab Rake tasks are performed using:
-
gitlab-rake <raketask>for Omnibus GitLab installations. -
bundle exec rake <raketask>for source installations.
Available Rake tasks
The following are available Rake tasks:
| Tasks | Description | Â |
|---|---|---|
| Back up and restore | Back up, restore, and migrate GitLab instances between servers. | Â |
| Clean up | Clean up unneeded items from GitLab instances. | Â |
| Development | Tasks for GitLab contributors. | Â |
| Doctor tasks | Checks for data integrity issues. | Â |
| Elasticsearch | Maintain Elasticsearch in a GitLab instance. | Â |
| Enable namespaces | Enable usernames and namespaces for user projects. | Â |
| General maintenance | General maintenance and self-check tasks. | Â |
| Geo maintenance | Geo-related maintenance. | Â |
| GitHub import | Retrieve and import repositories from GitHub. | Â |
| Import repositories | Import bare repositories into your GitLab instance. | Â |
| Import large project exports | Import large GitLab project exports. | Â |
| Integrity checks | Check the integrity of repositories, files, and LDAP. | Â |
| LDAP maintenance | LDAP-related tasks. | Â |
| List repositories | List of all GitLab-managed Git repositories on disk. | Â |
| Migrate Snippets to Git | Migrate GitLab Snippets to Git repositories and show migration status | Â |
| Praefect Rake tasks | Praefect-related tasks. | Â |
| Project import/export | Prepare for project exports and imports. | Â |
| Sample Prometheus data | Generate sample Prometheus data. | Â |
| SPDX license list import | Import a local copy of the SPDX license list for matching License Compliance policies. | Â |
| Repository storage | List and migrate existing projects and attachments from legacy storage to hashed storage. | Â |
| Uploads migrate | Migrate uploads between storage local and object storage. | Â |
| Uploads sanitize | Remove EXIF data from images uploaded to earlier versions of GitLab. | Â |
| User management | Perform user management tasks. | Â |
| Webhooks administration | Maintain project Webhooks. | Â |
| X.509 signatures | Update X.509 commit signatures, useful if certificate store has changed. | Â |