Migrate 7.6.2 to last omnibus

I have installed gitlab 7.6.2 from sources. It was 3.0.0 initially and now after many migrations (even from sqlite to mysql) I have many ugly small bugs (incorrect interface, etc).
I want to migrate to apt-package or omnibus. I don’t need to migrate wiki and issues - only repositories and users/groups. I cannot find any documentation how to do this… Please, help!

Hi there!

Here are some steps from the top of my head.

  1. Take a backup with cd /home/git; sudo -u git bundle exec rake gitlab:backup:create RAILS_ENV=production
  2. Stop gitlab service with sudo service gitlab stop
  3. Install the 7.6.2 package and after installation run sudo gitlab-ctl reconfigure
  4. Copy the backup to /var/opt/gitlab/backups/
  5. Stop needed services: sudo gitlab-ctl stop unicorn && sudo gitlab-ctl stop sidekiq
  6. Restore with sudo gitlab-rake gitlab:backup:restore BACKUP=1393513186, replace 1393513186 with your number.
  7. Start GitLab: sudo gitlab-ctl start
  8. Create satellites: sudo gitlab-rake gitlab:satellites:create

Thank you for answer!
On restore step I get this:

Unpacking backup … done
GitLab version mismatch:
Your current GitLab version (7.11.3) differs from the GitLab version in the backup!
Please switch to the following version and try again:
version: 7.6.2

Hint: git checkout v7.6.2

And no projects were restored actually… How to fix it?

You have to first install an old version, the same you took backup with. See step 3 where I tell you to install 7.6.2. You can find the binaries here https://about.gitlab.com/downloads/archives/

Thank you! That helped!
There were some troubles with migration mysql->pgsql, but I just unpacked backup, converted sql-part (with converter from gitlab site) and packed it back. Then I did all steps you wrote and finally successfully upgraded package to last version with apt-get upgrade.

1 Like