Commit 08262a04 authored by James Ramsay's avatar James Ramsay

Improve LFS rake task headings

parent b16517aa
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
GitLab provides Rake tasks for cleaning up GitLab instances. GitLab provides Rake tasks for cleaning up GitLab instances.
## Remove unreferenced LFS files from filesystem ## Remove unreferenced LFS files
> [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.
...@@ -42,7 +42,7 @@ Note that this Rake task only removes the references to LFS files. Unreferenced ...@@ -42,7 +42,7 @@ Note that this Rake task only removes the references to LFS files. Unreferenced
later (once a day). If you need to garbage collect them immediately, run later (once a day). If you need to garbage collect them immediately, run
`rake gitlab:cleanup:orphan_lfs_files` described below. `rake gitlab:cleanup:orphan_lfs_files` described below.
## Remove unreferenced LFS files ### Remove unreferenced LFS files immediately
> [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.
......
...@@ -26,8 +26,9 @@ you begin. The best way back up a repository is to ...@@ -26,8 +26,9 @@ you begin. The best way back up a repository is to
[export the project](../settings/import_export.md#exporting-a-project-and-its-data). [export the project](../settings/import_export.md#exporting-a-project-and-its-data).
NOTE: **Note:** NOTE: **Note:**
Git LFS files can only be removed by an Administrator using a [rake task](../../../raketasks/cleanup.html). Git LFS files can only be removed by an Administrator using a
Follow [this issue](https://gitlab.com/gitlab-org/gitlab/-/issues/223621) for updates. [rake task](../../../raketasks/cleanup.md). Removal of this limitation
[is planned](https://gitlab.com/gitlab-org/gitlab/-/issues/223621).
## Purge files from repository history ## Purge files from repository history
...@@ -51,7 +52,8 @@ To make cloning your project faster, rewrite branches and tags to remove unwante ...@@ -51,7 +52,8 @@ To make cloning your project faster, rewrite branches and tags to remove unwante
``` ```
To purge large files stored using Git LFS, the `--blob--callback` option can To purge large files stored using Git LFS, the `--blob--callback` option can
be used: be used. The example below, uses the callback to read the file size from the
Git LFS pointer, and removes files larger than 10MB.
```shell ```shell
git filter-repo --blob-callback ' git filter-repo --blob-callback '
...@@ -96,7 +98,7 @@ To make cloning your project faster, rewrite branches and tags to remove unwante ...@@ -96,7 +98,7 @@ To make cloning your project faster, rewrite branches and tags to remove unwante
[Protected tags](../protected_tags.md) will cause this to fail. To proceed, you must remove tag [Protected tags](../protected_tags.md) will cause this to fail. To proceed, you must remove tag
protection, push, and then re-enable protected tags. protection, push, and then re-enable protected tags.
1. Manually run [project housekeeping](../../../administration/housekeeping.html#manual-housekeeping) 1. Manually run [project housekeeping](../../../administration/housekeeping.md#manual-housekeeping)
NOTE: **Note** NOTE: **Note**
Project statistics are cached for performance. You may need to wait 5-10 minutes Project statistics are cached for performance. You may need to wait 5-10 minutes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment