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
61774cd7
Commit
61774cd7
authored
Nov 03, 2020
by
Ben Bodenmiller
Committed by
Suzanne Selhorn
Nov 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Transfer existing job logs to new storage location
parent
98afd74f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
doc/administration/job_logs.md
doc/administration/job_logs.md
+39
-0
No files found.
doc/administration/job_logs.md
View file @
61774cd7
...
...
@@ -43,6 +43,45 @@ To change the location where the job logs will be stored, follow the steps below
1.
Save the file and
[
reconfigure GitLab
](
restart_gitlab.md#omnibus-gitlab-reconfigure
)
for the
changes to take effect.
Alternatively, if you have existing job logs you can follow
these steps to move the logs to a new location without losing any data.
1.
Pause continuous integration data processing by updating this setting in
`/etc/gitlab/gitlab.rb`
.
Jobs in progress are not affected, based on how
[
data flow
](
#data-flow
)
works.
```
ruby
sidekiq
[
'experimental_queue_selector'
]
=
true
sidekiq
[
'queue_groups'
]
=
[
"feature_category!=continuous_integration"
]
```
1.
Save the file and
[
reconfigure GitLab
](
restart_gitlab.md#omnibus-gitlab-reconfigure
)
for the
changes to take effect.
1.
Set the new storage location in
`/etc/gitlab/gitlab.rb`
:
```
ruby
gitlab_ci
[
'builds_directory'
]
=
'/mnt/to/gitlab-ci/builds'
```
1.
Save the file and
[
reconfigure GitLab
](
restart_gitlab.md#omnibus-gitlab-reconfigure
)
for the
changes to take effect.
1.
Use
`rsync`
to move job logs from the current location to the new location:
```
shell
sudo
rsync
-avzh
--remove-source-files
--ignore-existing
--progress
/var/opt/gitlab/gitlab-ci/builds/ /mnt/to/gitlab-ci/builds
`
```
Use
`--ignore-existing`
so you don't override new job logs with older versions of the same log.
1.
Unpause continuous integration data processing by editing
`/etc/gitlab/gitlab.rb`
and removing the
`sidekiq`
setting you updated earlier.
1.
Save the file and
[
reconfigure GitLab
](
restart_gitlab.md#omnibus-gitlab-reconfigure
)
for the
changes to take effect.
1.
Remove the old job logs storage location:
```
shell
sudo rm
-rf
/var/opt/gitlab/gitlab-ci/builds
`
```
**In installations from source:**
1.
Edit
`/home/git/gitlab/config/gitlab.yml`
and add or amend the following lines:
...
...
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