diff options
author | Ben Bodenmiller <bbodenmiller@hotmail.com> | 2014-10-18 12:49:59 +0400 |
---|---|---|
committer | Ben Bodenmiller <bbodenmiller@hotmail.com> | 2014-10-18 12:49:59 +0400 |
commit | 9a92e53f622f29388851f25abe191dad38e35516 (patch) | |
tree | 3b86c492f707cd42ae53762dd66340a026449982 /doc | |
parent | 564c4138e914abab570ad92c4850dd2b35d37198 (diff) |
stop gitlab before backup
Stopping gitlab before backup ensures that backup has everything before upgrade incase something goes wrong. Also remove extra cd.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/update/7.3-to-7.4.md | 14 |
1 files changed, 5 insertions, 9 deletions
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 ``` |