Skip to content

Commit

Permalink
stop gitlab before backup
Browse files Browse the repository at this point in the history
Stopping gitlab before backup ensures that backup has everything before upgrade incase something goes wrong. Also remove extra cd.
  • Loading branch information
bbodenmiller committed Oct 18, 2014
1 parent 564c413 commit 9a92e53
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions 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
```
Expand Down

0 comments on commit 9a92e53

Please sign in to comment.