gitlab-org--gitlab-foss/doc/update/upgrader.md

1.0 KiB

GitLab Upgrader

GitLab Upgrader - a ruby script that allows you easily upgrade GitLab to latest minor version. For example it can update your application from 6.4 to latest GitLab 6 version (like 6.6.1). You still need to create a a backup and manually restart GitLab after runnning the script but all other operations are done by this upgrade script. If you have local changes to your GitLab repository the script will stash them and you need to use git stash pop after running the script.

GitLab Upgrader is available only for GitLab version 6.4.2 or higher

0. Backup

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. Run gitlab upgrade tool

cd /home/git/gitlab
sudo -u git -H ruby script/upgrade.rb

# it also supports -y option to avoid waiting for user input
# sudo -u git -H ruby script/upgrade.rb -y

3. Start application

sudo service gitlab start
sudo service nginx restart