Export a repository from a Gitlab server to another Gitlab server

blackeyedboy picture blackeyedboy · Apr 25, 2014 · Viewed 47.3k times · Source

Just installed a fresh new 6.8 Gitlab on a brand new high performance server.

Before considering to forget my repositories history (comments, issues, etc...), do one know of a way to export a repository data from a Gitlab server to another Gitlab Server ?

I just failed to found anything on the documentation for exporting/migrating the whole project data (not just the git repository and its wiki).

Answer

Greg Dubicki picture Greg Dubicki · Jul 25, 2016

For GitLab versions >= 8.9 (released in June 2016) you can use built-in export and import project feature.

Note that for existing installations of GitLab, the project import option has to be enabled in application settings (URL: /admin/application_settings) under 'Import sources'. You will have to be an administrator to enable and use the import functionality.

Here's the feature complete documentation: https://gitlab.com/help/user/project/settings/import_export.md