Commit 119b6318 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'patch-166' into 'master'

Use sudo in remove orphan artifact files cmds

See merge request gitlab-org/gitlab!35571
parents fbaeb915 f545e20a
...@@ -142,7 +142,7 @@ When you notice there are more job artifacts files on disk than there ...@@ -142,7 +142,7 @@ When you notice there are more job artifacts files on disk than there
should be, you can run: should be, you can run:
```shell ```shell
gitlab-rake gitlab:cleanup:orphan_job_artifact_files sudo gitlab-rake gitlab:cleanup:orphan_job_artifact_files
``` ```
This command: This command:
...@@ -156,13 +156,13 @@ delete. Run the command with `DRY_RUN=false` if you actually want to ...@@ -156,13 +156,13 @@ delete. Run the command with `DRY_RUN=false` if you actually want to
delete the files: delete the files:
```shell ```shell
gitlab-rake gitlab:cleanup:orphan_job_artifact_files DRY_RUN=false sudo gitlab-rake gitlab:cleanup:orphan_job_artifact_files DRY_RUN=false
``` ```
You can also limit the number of files to delete with `LIMIT`: You can also limit the number of files to delete with `LIMIT`:
```shell ```shell
gitlab-rake gitlab:cleanup:orphan_job_artifact_files LIMIT=100 sudo gitlab-rake gitlab:cleanup:orphan_job_artifact_files LIMIT=100
``` ```
This will only delete up to 100 files from disk. You can use this to This will only delete up to 100 files from disk. You can use this to
......
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