Migrate self hosted gitlab

I have a gitlab self hosted in proxmox vm and I want to migrate it to digitalocean, if anyone did something similar I need some help and steps to do the migration

To do something like that requires using the Gitlab backup and restore functionality as explained in the documentation: Back up and restore overview | GitLab

In summary:

  1. Run gitlab backup process and copy that file from /var/gitlab/backups to the new VM.
  2. Copy /etc/gitlab/gitlab.rb and /etc/gitlab/gitlab-secrets.json to the new VM.
  3. With the files from point 2 in the correct place run gitlab-ctl reconfigure to get an empty running Gitlab install.
  4. Restore Gitlab backup as per documentation.

if you have a licensed instance, then you can use GEO to ‘mirror’ the host to the new environment and cut over that way.

I migrated our self hosted environment for an OLD legacy Intel based AWS host to a new ARM - Graviton based instance with GEO and it was super easy.

With GEO up and working, I could test things out on the new host and make sure all was working before I pulled the plug.

I have this post (in french) to migrate from an instance Gitlab from a Debian Yunohost to a Docker Stack (with Portainer)n was very useful and easy.

migrer un serveur gitlab