Skip to content

Instantly share code, notes, and snippets.

@m-kyle
Last active January 5, 2019 19:07
Show Gist options
  • Save m-kyle/a0fd8b54558be239c1c3fc548a725f3a to your computer and use it in GitHub Desktop.
Save m-kyle/a0fd8b54558be239c1c3fc548a725f3a to your computer and use it in GitHub Desktop.
GitLab Source to Omnibus Migration

GitLab Source to Omnibus Migration

Virtual Machine Setup for GitLab Source

  • Ubuntu 14.04.5
  • MySQL - 5.5.53

GitLab Software

  • GitLab Source - 7.14.3
  • GitLab Shell - 2.6.5
  • GitLab API - v3
  • Ruby 2.1.6p336
  • Rails - 4.1.11

GitLab Migrate

GitLab 7.14.3 to Omnibus Tutorial

  • Create a backup of the non-Omnibus MySQL installation
  • Export and convert the existing MySQL database in the GitLab backup file
  • Restore this in the Omnibus installation
  • Rebuild database indexes

GitLab Source

Install GitLab from Source

GitLab install from source Tutorial

Convert MySQL Backup to Postgresql

Tutorial Followed

Once converted transfer to GitLab Omnibus server.

GitLab Omnibus

Install older version of GitLab Omnibus

List of GitLab Packages

Install same version of omnibus as GitLab source (7.14.3)

sudo dpkg -i gitlab-ce_7.14.3-ce.1_amd64.deb

GitLab Omnibus Postgres Restore

Restoring an application backup

Move GitLab backup (Postgres) to /var/opt/gitlab/backups/

It must have the permissions git:root:

sudo chown git:root /var/opt/gitlab/backups/1480979818_gitlab_backup.tar

Once restore has finished run:

sudo gitlab-ctl restart

Update to latest GitLab Omnibus Version

Download all older versions required from the GitLab packages website. Transfer to GitLab Omnibus server.

Install updates using:

sudo dpkg -i gitlab-ce_8.0.0-ce.0_amd64.deb

Once on latest major version (8.14.0) run the GitLab Installer

Install and configure the necessary dependencies

sudo apt-get install curl openssh-server ca-certificates postfix

Add the GitLab package server and install the package

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce

Configure and start GitLab

sudo gitlab-ctl reconfigure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment