summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValeriy Sizov <vsv2711@gmail.com>2014-10-21 12:47:54 +0300
committerValeriy Sizov <vsv2711@gmail.com>2014-10-21 12:47:54 +0300
commitbc56de15b54ceef44c645b3ce1a87f70dbadb11e (patch)
treef01cf0c1932d452c40cc3b2d436aa8820240aca3
parent2dd94657dc012ca8c1e8e5411ba9e9e94f94e4ce (diff)
parent3e6b284bd0cf597f6446e1990a53acb806fb359a (diff)
downloadgitlab-ce-bc56de15b54ceef44c645b3ce1a87f70dbadb11e.tar.gz
Merge pull request #8070 from bbodenmiller/patch-22
[7.4 rc fix] [doc] stop gitlab before backup
-rw-r--r--doc/update/6.x-or-7.x-to-7.4.md10
-rw-r--r--doc/update/7.3-to-7.4.md14
2 files changed, 10 insertions, 14 deletions
diff --git a/doc/update/6.x-or-7.x-to-7.4.md b/doc/update/6.x-or-7.x-to-7.4.md
index c4a2eb7e366..8516c3babaa 100644
--- a/doc/update/6.x-or-7.x-to-7.4.md
+++ b/doc/update/6.x-or-7.x-to-7.4.md
@@ -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
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:
(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
sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
```
-## 1. Stop server
-
- sudo service gitlab stop
-
## 2. Update Ruby
If you are still using Ruby 1.9.3 or below, you will need to update Ruby.
diff --git a/doc/update/7.3-to-7.4.md b/doc/update/7.3-to-7.4.md
index 193f44bb67e..6ef91913bbf 100644
--- a/doc/update/7.3-to-7.4.md
+++ b/doc/update/7.3-to-7.4.md
@@ -1,22 +1,18 @@
# From 7.3 to 7.4
-### 0. Backup
+### 0. Stop server
-```bash
-cd /home/git/gitlab
-sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
-```
+ sudo service gitlab stop
-### 1. Stop server
+### 1. Backup
```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
```bash
-cd /home/git/gitlab
sudo -u git -H git fetch --all
sudo -u git -H git checkout -- db/schema.rb # local changes will be restored automatically
```