How to migrate entire gitlab project?

Viewed 30

I want to migrate the group, all sub-groups and projects from gitlab.com to a self contained gitlab instance(local). I can migrate the group and sub-groups but not the projects.

The documentation says this, but I'm not able to 100% understand it:

On self-managed GitLab, migrating project resources are not available by default. To make them available, ask an administrator to enable the feature flag named bulk_import_projects. On GitLab.com, migrating project resources are not available.

link: https://docs.gitlab.com/ee/user/group/import/index.html#migrated-project-resources

This means that I can't migrate from gitlab.com to self contained gitlab?

Is there an automated method that allows me to do this?

1 Answers

If you're on a self-managed instance of GitLab, and you have administrator rights (or rather the ability to access the rails console), then you can follow the instructions in documentation you linked to.

Basically, you need to turn on the feature flag by starting the rails console, and running the command:

Feature.enable(:bulk_import_projects)

After turning on the feature flag, and you go to migrate a group, it should migrate the projects in the group as well.

There is no built-in automation to import all of your groups. If you need to, you might consider looking at the Congregate tool mentioned in the documentation.

Related