in System Administration

Migrate gitlab mysql to omnibus postgres

Migrating gitlab from mysql to postgres using omnibus is rather straight forward, thanks to the magnificent documentation. However, having the benefit of a brain dump helps most of the times. That’s what this post is for. If you went into troubles migrating gitlab, read on.

First things first: You tried to insert the backup without converting it to postgres first? Big mistake, fortunately nothing that we are not able to fix. Following steps will “factory reset” gitlab (yepp, everything’s gone afterwards).

Let’s start from the beginning:

Download and follow the install recipe here.

On your old (mysql) server do the following:

Only thing missing is reindexing: