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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
6000c719
Commit
6000c719
authored
Jun 16, 2015
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve DB dump instructions
parent
c14de4fd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
doc/development/db_dump.md
doc/development/db_dump.md
+5
-0
No files found.
doc/development/db_dump.md
View file @
6000c719
...
@@ -4,6 +4,9 @@ Sometimes it is useful to import the database from a production environment
...
@@ -4,6 +4,9 @@ Sometimes it is useful to import the database from a production environment
into a staging environment for testing. The procedure below assumes you have
into a staging environment for testing. The procedure below assumes you have
SSH+sudo access to both the production environment and the staging VM.
SSH+sudo access to both the production environment and the staging VM.
**Destroy your staging VM**
when you are done with it. It is important to avoid
data leaks.
On the staging VM, add the following line to
`/etc/gitlab/gitlab.rb`
to speed up
On the staging VM, add the following line to
`/etc/gitlab/gitlab.rb`
to speed up
large database imports.
large database imports.
...
@@ -12,6 +15,8 @@ large database imports.
...
@@ -12,6 +15,8 @@ large database imports.
echo "postgresql['checkpoint_segments'] = 64" | sudo tee -a /etc/gitlab/gitlab.rb
echo "postgresql['checkpoint_segments'] = 64" | sudo tee -a /etc/gitlab/gitlab.rb
sudo touch /etc/gitlab/skip-auto-migrations
sudo touch /etc/gitlab/skip-auto-migrations
sudo gitlab-ctl reconfigure
sudo gitlab-ctl reconfigure
sudo gitlab-ctl stop unicorn
sudo gitlab-ctl stop sidekiq
```
```
Next, we let the production environment stream a compressed SQL dump to our
Next, we let the production environment stream a compressed SQL dump to our
...
...
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