| [List repositories](list_repos.md) | List of all GitLab-managed Git repositories on disk. |
| [List repositories](list_repos.md)| List of all GitLab-managed Git repositories on disk. |
| [Project import/export](../administration/raketasks/project_import_export.md) | Prepare for [project exports and imports](../user/project/settings/import_export.md). |
| [Project import/export](../administration/raketasks/project_import_export.md)| Prepare for [project exports and imports](../user/project/settings/import_export.md). |
| [Repository storage](../administration/raketasks/storage.md) | List and migrate existing projects and attachments from legacy storage to hashed storage. |
| [Repository storage](../administration/raketasks/storage.md)| List and migrate existing projects and attachments from legacy storage to hashed storage. |
| [Uploads migrate](../administration/raketasks/uploads/migrate.md) | Migrate uploads between storage local and object storage. |
| [Uploads migrate](../administration/raketasks/uploads/migrate.md)| Migrate uploads between storage local and object storage. |
| [Uploads sanitize](../administration/raketasks/uploads/sanitize.md) | Remove EXIF data from images uploaded to earlier versions of GitLab. |
| [Uploads sanitize](../administration/raketasks/uploads/sanitize.md)| Remove EXIF data from images uploaded to earlier versions of GitLab. |
| [User management](user_management.md) | Perform user management tasks. |
| [User management](user_management.md)| Perform user management tasks. |
GitLab provides Rake tasks for backing up and restoring GitLab instances.
GitLab provides Rake tasks for backing up and restoring GitLab instances.
...
@@ -687,7 +687,7 @@ before restoring the backup.
...
@@ -687,7 +687,7 @@ before restoring the backup.
You need to have a working GitLab installation before you can perform
You need to have a working GitLab installation before you can perform
a restore. This is mainly because the system user performing the
a restore. This is mainly because the system user performing the
restore actions (`git`) is usually not allowed to create or delete
restore actions (`git`) is usually not allowed to create or delete
the SQL database it needs to import data into ('gitlabhq_production').
the SQL database it needs to import data into (`gitlabhq_production`).
All existing data will be either erased (SQL) or moved to a separate
All existing data will be either erased (SQL) or moved to a separate
directory (repositories, uploads).
directory (repositories, uploads).
...
@@ -713,7 +713,7 @@ more of the following options:
...
@@ -713,7 +713,7 @@ more of the following options:
Read what the [backup timestamp is about](#backup-timestamp).
Read what the [backup timestamp is about](#backup-timestamp).
-`force=yes` - Does not ask if the authorized_keys file should get regenerated and assumes 'yes' for warning that database tables will be removed, enabling the "Write to authorized_keys file" setting, and updating LDAP providers.
-`force=yes` - Does not ask if the authorized_keys file should get regenerated and assumes 'yes' for warning that database tables will be removed, enabling the "Write to authorized_keys file" setting, and updating LDAP providers.
If you are restoring into directories that are mountpoints you will need to make
If you are restoring into directories that are mount points, you will need to make
sure these directories are empty before attempting a restore. Otherwise GitLab
sure these directories are empty before attempting a restore. Otherwise GitLab
will attempt to move these directories before restoring the new data and this
will attempt to move these directories before restoring the new data and this
GitLab provides Rake tasks for cleaning up GitLab instances.
GitLab provides Rake tasks for cleaning up GitLab instances.
...
@@ -7,9 +7,11 @@ GitLab provides Rake tasks for cleaning up GitLab instances.
...
@@ -7,9 +7,11 @@ GitLab provides Rake tasks for cleaning up GitLab instances.
> [Introduced](https://gitlab.com/gitlab-org/gitlab/issues/36628) in GitLab 12.10.
> [Introduced](https://gitlab.com/gitlab-org/gitlab/issues/36628) in GitLab 12.10.
DANGER: **Danger:**
DANGER: **Danger:**
Do not run this within 12 hours of a GitLab upgrade. This is to ensure that all background migrations have finished, which otherwise may lead to data loss.
Do not run this within 12 hours of a GitLab upgrade. This is to ensure that all background migrations
have finished, which otherwise may lead to data loss.
When you remove LFS files from a repository's history, they become orphaned and continue to consume disk space. With this Rake task, you can remove invalid references from the database, which
When you remove LFS files from a repository's history, they become orphaned and continue to consume
disk space. With this Rake task, you can remove invalid references from the database, which