Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f545e20a
Commit
f545e20a
authored
Jun 30, 2020
by
Ben Bodenmiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use sudo in remove orphan artifact files cmds
parent
87c5da9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
doc/raketasks/cleanup.md
doc/raketasks/cleanup.md
+3
-3
No files found.
doc/raketasks/cleanup.md
View file @
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment