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
Léo-Paul Géneau
gitlab-ce
Commits
bc56de15
Commit
bc56de15
authored
Oct 21, 2014
by
Valeriy Sizov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8070 from bbodenmiller/patch-22
[7.4 rc fix] [doc] stop gitlab before backup
parents
2dd94657
3e6b284b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
14 deletions
+10
-14
doc/update/6.x-or-7.x-to-7.4.md
doc/update/6.x-or-7.x-to-7.4.md
+5
-5
doc/update/7.3-to-7.4.md
doc/update/7.3-to-7.4.md
+5
-9
No files found.
doc/update/6.x-or-7.x-to-7.4.md
View file @
bc56de15
...
@@ -13,7 +13,11 @@ possible to edit the label text and color. The characters `?`, `&` and `,` are
...
@@ -13,7 +13,11 @@ possible to edit the label text and color. The characters `?`, `&` and `,` are
no longer allowed however so those will be removed from your tags during the
no longer allowed however so those will be removed from your tags during the
database migrations for GitLab 7.2.
database migrations for GitLab 7.2.
## 0. Backup
## 0. Stop server
sudo service gitlab stop
## 1. Backup
It's useful to make a backup just in case things go south:
It's useful to make a backup just in case things go south:
(With MySQL, this may require granting "LOCK TABLES" privileges to the GitLab user on the database version)
(With MySQL, this may require granting "LOCK TABLES" privileges to the GitLab user on the database version)
...
@@ -23,10 +27,6 @@ cd /home/git/gitlab
...
@@ -23,10 +27,6 @@ cd /home/git/gitlab
sudo
-u
git
-H
bundle
exec
rake gitlab:backup:create
RAILS_ENV
=
production
sudo
-u
git
-H
bundle
exec
rake gitlab:backup:create
RAILS_ENV
=
production
```
```
## 1. Stop server
sudo service gitlab stop
## 2. Update Ruby
## 2. Update Ruby
If you are still using Ruby 1.9.3 or below, you will need to update Ruby.
If you are still using Ruby 1.9.3 or below, you will need to update Ruby.
...
...
doc/update/7.3-to-7.4.md
View file @
bc56de15
# From 7.3 to 7.4
# From 7.3 to 7.4
### 0.
Backup
### 0.
Stop server
```
bash
sudo service gitlab stop
cd
/home/git/gitlab
sudo
-u
git
-H
bundle
exec
rake gitlab:backup:create
RAILS_ENV
=
production
```
### 1.
Stop server
### 1.
Backup
```
bash
```
bash
sudo
service gitlab stop
cd
/home/git/gitlab
```
sudo
-u
git
-H
bundle
exec
rake gitlab:backup:create
RAILS_ENV
=
production
### 2. Get latest code
### 2. Get latest code
```
bash
```
bash
cd
/home/git/gitlab
sudo -u git -H git fetch --all
sudo -u git -H git fetch --all
sudo -u git -H git checkout -- db/schema.rb # local changes will be restored automatically
sudo -u git -H git checkout -- db/schema.rb # local changes will be restored automatically
```
```
...
...
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