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:
# this file was generated by for
# the repository at

deb bionic main
deb-src bionic main

curl -L | sudo apt-key add –

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

Look in your old Gitlab Environment on the Admin page, it is listed on the right.
You can find versions here:

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.