I have a new respect for gitlab admins

It isĀ hard to transition from one gitlab machine to another, especially if you have a stupidly large OCI registry using the new metadata database. If you happen to need to dump the metadata postgresql database from an omnibus container, may I comment this pattern to you:

$ docker exec -u registry -it gitlab /bin/bash
$ cd /var/opt/gitlab/postgresql/
$ pg_dump -U registry -h /var/opt/gitlab/postgresql registry > registry.sql

That’s an hour of my life I’m never getting back right there.

Leave a Reply

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