Commit 9a92e53f authored by Ben Bodenmiller's avatar Ben Bodenmiller

stop gitlab before backup

Stopping gitlab before backup ensures that backup has everything before upgrade incase something goes wrong. Also remove extra cd.
parent 564c4138
# 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
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment