stop gitlab before backup
Stopping gitlab before backup ensures that backup has everything before upgrade incase something goes wrong. Also remove extra cd.
This commit is contained in:
parent
564c4138e9
commit
9a92e53f62
1 changed files with 5 additions and 9 deletions
|
@ -1,22 +1,18 @@
|
|||
# From 7.3 to 7.4
|
||||
|
||||
### 0. Backup
|
||||
### 0. Stop server
|
||||
|
||||
sudo service gitlab stop
|
||||
|
||||
### 1. Backup
|
||||
|
||||
```bash
|
||||
cd /home/git/gitlab
|
||||
sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
|
||||
```
|
||||
|
||||
### 1. Stop server
|
||||
|
||||
```bash
|
||||
sudo service gitlab stop
|
||||
```
|
||||
|
||||
### 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
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue