Using Ubuntu 18.04 via a Vagrant Virtualbox VM I migrated a back up from my VPS to a VM at home.

In old VM:
Backup Gitlab Environment:
sudo gitlab-rake gitlab:backup:create

In your new VM:
Create file:
/etc/apt/sources.list.d/gitlab_gitlab-ce.list
# this file was generated by packages.gitlab.com for
# the repository at https://packages.gitlab.com/gitlab/gitlab-ce

deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ bionic main
deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ bionic main

curl -L https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey | sudo apt-key add –

Then:
sudo apt-get update
sudo apt-get install gitlab-ce=[your old gitlab version]

Example:
11.8.1-ce.0
Note:
Look in your old Gitlab Environment on the Admin page, it is listed on the right.
You can find versions here:
https://packages.gitlab.com/gitlab/gitlab-ce

sudo gitlab-ctl reconfigure

sudo gitlab-ctl stop unicorn
sudo gitlab-ctl stop sidekiq
sudo gitlab-ctl status
sudo gitlab-rake gitlab:backup:restore BACKUP=
sudo gitlab-ctl reconfigure

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.