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!
Here are some steps from the top of my head.
- Take a backup with
cd /home/git; sudo -u git bundle exec rake gitlab:backup:create RAILS_ENV=production
- Stop gitlab service with
sudo service gitlab stop
- Install the 7.6.2 package and after installation run
sudo gitlab-ctl reconfigure
- Copy the backup to
- Stop needed services:
sudo gitlab-ctl stop unicorn && sudo gitlab-ctl stop sidekiq
- Restore with
sudo gitlab-rake gitlab:backup:restore BACKUP=1393513186, replace
1393513186with your number.
- Start GitLab:
sudo gitlab-ctl start
- 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:
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.