debian-mirror-gitlab/doc/raketasks/index.md

64 lines
4.4 KiB
Markdown
Raw Normal View History

2021-03-11 19:13:27 +05:30
---
2022-07-23 23:45:48 +05:30
stage: Systems
2021-04-29 21:17:54 +05:30
group: Distribution
2021-03-11 19:13:27 +05:30
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 tasks **(FREE SELF)**
2021-04-29 21:17:54 +05:30
GitLab provides [Rake](https://ruby.github.io/rake/) tasks to assist you with
common administration and operational processes.
2021-03-11 19:13:27 +05:30
2021-04-29 21:17:54 +05:30
You can perform GitLab Rake tasks by using:
2021-03-11 19:13:27 +05:30
2021-11-18 22:05:49 +05:30
- `gitlab-rake <raketask>` for [Omnibus GitLab](https://docs.gitlab.com/omnibus/index.html)
2021-04-29 21:17:54 +05:30
installations.
- `bundle exec rake <raketask>` for [source](../install/installation.md)
installations.
2021-03-11 19:13:27 +05:30
## Available Rake tasks
2021-04-29 21:17:54 +05:30
The following Rake tasks are available for use with GitLab:
2021-03-11 19:13:27 +05:30
2021-04-29 21:17:54 +05:30
| Tasks | Description |
|:------------------------------------------------------|:------------|
| [Back up and restore](backup_restore.md) | Back up, restore, and migrate GitLab instances between servers. |
| [Clean up](cleanup.md) | Clean up unneeded items from GitLab instances. |
| [Development](../development/rake_tasks.md) | Tasks for GitLab contributors. |
2022-07-23 23:45:48 +05:30
| [Elasticsearch](../integration/advanced_search/elasticsearch.md#gitlab-advanced-search-rake-tasks) | Maintain Elasticsearch in a GitLab instance. |
2021-04-29 21:17:54 +05:30
| [General maintenance](../administration/raketasks/maintenance.md) | General maintenance and self-check tasks. |
| [Geo maintenance](../administration/raketasks/geo.md) | [Geo](../administration/geo/index.md)-related maintenance. |
| [GitHub import](../administration/raketasks/github_import.md) | Retrieve and import repositories from GitHub. |
| [Import repositories](import.md) | Import bare repositories into your GitLab instance. |
| [Import large project exports](../development/import_project.md#importing-via-a-rake-task) | Import large GitLab [project exports](../user/project/settings/import_export.md). |
2022-03-02 08:16:31 +05:30
| [Integrity checks](../administration/raketasks/check.md) | Check the integrity of repositories, files, LDAP, and more. |
2021-04-29 21:17:54 +05:30
| [LDAP maintenance](../administration/raketasks/ldap.md) | [LDAP](../administration/auth/ldap/index.md)-related tasks. |
| [List repositories](list_repos.md) | List all GitLab-managed Git repositories on disk. |
| [Migrate snippets to Git](migrate_snippets.md) | Migrate GitLab Snippets to Git repositories, and show the migration status. |
| [Praefect Rake tasks](../administration/raketasks/praefect.md) | [Praefect](../administration/gitaly/praefect.md)-related tasks. |
| [Project import/export](../administration/raketasks/project_import_export.md) | Prepare for [project exports and imports](../user/project/settings/import_export.md). |
| [Sample Prometheus data](generate_sample_prometheus_data.md) | Generate sample Prometheus data. |
2021-06-08 01:23:25 +05:30
| [Sidekiq job migration](sidekiq_job_migration.md) | Migrate Sidekiq jobs scheduled for future dates to a new queue. |
2021-10-27 15:23:28 +05:30
| [SMTP maintenance](../administration/raketasks/smtp.md) | SMTP-related tasks. |
2021-06-08 01:23:25 +05:30
| [SPDX license list import](spdx.md) | Import a local copy of the [SPDX license list](https://spdx.org/licenses/) for matching [License Compliance policies](../user/compliance/license_compliance/index.md). |
2021-04-29 21:17:54 +05:30
| [Repository storage](../administration/raketasks/storage.md) | List and migrate existing projects and attachments from legacy storage to hashed storage. |
2022-01-26 12:08:38 +05:30
| [Reset user passwords](../security/reset_user_password.md#use-a-rake-task) | Reset user passwords using Rake. |
2021-04-29 21:17:54 +05:30
| [Uploads migrate](../administration/raketasks/uploads/migrate.md) | Migrate uploads between local storage and object storage. |
| [Uploads sanitize](../administration/raketasks/uploads/sanitize.md) | Remove EXIF data from images uploaded to earlier versions of GitLab. |
2021-09-30 23:02:18 +05:30
| [Service Data](../administration/troubleshooting/gitlab_rails_cheat_sheet.md#generate-service-ping) | Generate and troubleshoot [Service Ping](../development/service_ping/index.md). |
2021-04-29 21:17:54 +05:30
| [User management](user_management.md) | Perform user management tasks. |
| [Webhooks administration](web_hooks.md) | Maintain project webhooks. |
| [X.509 signatures](x509_signatures.md) | Update X.509 commit signatures, which can be useful if the certificate store changed. |
2021-11-18 22:05:49 +05:30
To list all available Rake tasks:
```shell
# Omnibus GitLab
sudo gitlab-rake -vT
# Installations from source
cd /home/git/gitlab
sudo -u git -H bundle exec rake -vT RAILS_ENV=production
```