2016-06-21 13:28:08 -04:00
|
|
|
# Project import/export
|
|
|
|
|
2016-06-22 05:31:07 -04:00
|
|
|
>**Notes:**
|
2016-08-08 04:09:54 -04:00
|
|
|
>
|
|
|
|
> - [Introduced][ce-3050] in GitLab 8.9.
|
2016-09-07 11:08:19 -04:00
|
|
|
> - Importing will not be possible if the import instance version differs from
|
|
|
|
> that of the exporter.
|
2016-08-08 04:09:54 -04:00
|
|
|
> - For existing installations, the project import option has to be enabled in
|
|
|
|
> application settings (`/admin/application_settings`) under 'Import sources'.
|
2016-08-29 03:46:05 -04:00
|
|
|
> Ask your administrator if you don't see the **GitLab export** button when
|
|
|
|
> creating a new project.
|
2017-07-31 17:34:47 -04:00
|
|
|
> - Starting with GitLab 10.0, administrators can disable the project export option
|
|
|
|
> on the GitLab instance in application settings (`/admin/application_settings`)
|
|
|
|
> under 'Visibility and Access Controls'.
|
2016-08-08 04:09:54 -04:00
|
|
|
> - You can find some useful raketasks if you are an administrator in the
|
|
|
|
> [import_export](../../../administration/raketasks/project_import_export.md)
|
|
|
|
> raketask.
|
|
|
|
> - The exports are stored in a temporary [shared directory][tmp] and are deleted
|
|
|
|
> every 24 hours by a specific worker.
|
2017-02-01 06:09:02 -05:00
|
|
|
> - Group members will get exported as project members, as long as the user has
|
|
|
|
> master or admin access to the group where the exported project lives. An admin
|
|
|
|
> in the import side is required to map the users, based on email or username.
|
|
|
|
> Otherwise, a supplementary comment is left to mention the original author and
|
|
|
|
> the MRs, notes or issues will be owned by the importer.
|
2018-02-13 09:35:08 -05:00
|
|
|
> - Control project Import/Export with the [API](../../../api/project_import_export.md).
|
2016-06-21 14:07:52 -04:00
|
|
|
|
2016-06-21 13:28:08 -04:00
|
|
|
Existing projects running on any GitLab instance or GitLab.com can be exported
|
|
|
|
with all their related data and be moved into a new GitLab instance.
|
|
|
|
|
2016-09-07 11:08:19 -04:00
|
|
|
## Version history
|
|
|
|
|
2017-08-30 09:38:16 -04:00
|
|
|
| GitLab version | Import/Export version |
|
|
|
|
| ---------------- | --------------------- |
|
2018-03-06 09:20:20 -05:00
|
|
|
| 10.8 to current | 0.2.3 |
|
|
|
|
| 10.4 | 0.2.2 |
|
2018-01-05 09:18:17 -05:00
|
|
|
| 10.3 | 0.2.1 |
|
2017-11-21 11:58:08 -05:00
|
|
|
| 10.0 | 0.2.0 |
|
2017-08-30 09:38:16 -04:00
|
|
|
| 9.4.0 | 0.1.8 |
|
|
|
|
| 9.2.0 | 0.1.7 |
|
|
|
|
| 8.17.0 | 0.1.6 |
|
|
|
|
| 8.13.0 | 0.1.5 |
|
|
|
|
| 8.12.0 | 0.1.4 |
|
|
|
|
| 8.10.3 | 0.1.3 |
|
|
|
|
| 8.10.0 | 0.1.2 |
|
|
|
|
| 8.9.5 | 0.1.1 |
|
|
|
|
| 8.9.0 | 0.1.0 |
|
2017-03-17 19:06:11 -04:00
|
|
|
|
2016-09-07 11:08:19 -04:00
|
|
|
> The table reflects what GitLab version we updated the Import/Export version at.
|
|
|
|
> For instance, 8.10.3 and 8.11 will have the same Import/Export version (0.1.3)
|
|
|
|
> and the exports between them will be compatible.
|
|
|
|
|
2016-06-21 13:28:08 -04:00
|
|
|
## Exported contents
|
|
|
|
|
2016-06-21 14:07:52 -04:00
|
|
|
The following items will be exported:
|
2016-06-21 13:28:08 -04:00
|
|
|
|
2016-06-21 14:07:52 -04:00
|
|
|
- Project and wiki repositories
|
|
|
|
- Project uploads
|
|
|
|
- Project configuration including web hooks and services
|
|
|
|
- Issues with comments, merge requests with diffs and comments, labels, milestones, snippets,
|
|
|
|
and other project entities
|
2018-03-30 10:32:21 -04:00
|
|
|
- LFS objects
|
2016-06-21 13:28:08 -04:00
|
|
|
|
2016-06-21 14:07:52 -04:00
|
|
|
The following items will NOT be exported:
|
2016-06-21 13:28:08 -04:00
|
|
|
|
2016-06-21 14:07:52 -04:00
|
|
|
- Build traces and artifacts
|
2017-01-24 06:06:09 -05:00
|
|
|
- Container registry images
|
|
|
|
- CI variables
|
|
|
|
- Any encrypted tokens
|
2016-06-21 13:28:08 -04:00
|
|
|
|
2016-06-21 14:07:52 -04:00
|
|
|
## Exporting a project and its data
|
2016-06-21 13:28:08 -04:00
|
|
|
|
2016-06-22 05:15:28 -04:00
|
|
|
1. Go to the project settings page by clicking on **Edit Project**:
|
2016-06-21 13:28:08 -04:00
|
|
|
|
2016-06-21 14:07:52 -04:00
|
|
|
![Project settings button](img/settings_edit_button.png)
|
2016-06-21 13:28:08 -04:00
|
|
|
|
2016-06-22 05:15:28 -04:00
|
|
|
1. Scroll down to find the **Export project** button:
|
2016-06-21 13:28:08 -04:00
|
|
|
|
2016-06-22 05:41:50 -04:00
|
|
|
![Export button](img/import_export_export_button.png)
|
2016-06-21 13:28:08 -04:00
|
|
|
|
2016-06-21 14:07:52 -04:00
|
|
|
1. Once the export is generated, you should receive an e-mail with a link to
|
2016-06-22 05:15:28 -04:00
|
|
|
download the file:
|
2016-06-21 13:28:08 -04:00
|
|
|
|
2016-06-22 05:41:50 -04:00
|
|
|
![Email download link](img/import_export_mail_link.png)
|
2016-06-21 13:28:08 -04:00
|
|
|
|
2016-06-21 14:07:52 -04:00
|
|
|
1. Alternatively, you can come back to the project settings and download the
|
2016-06-22 05:15:28 -04:00
|
|
|
file from there, or generate a new export. Once the file available, the page
|
|
|
|
should show the **Download export** button:
|
2016-06-21 13:28:08 -04:00
|
|
|
|
2016-06-22 05:41:50 -04:00
|
|
|
![Download export](img/import_export_download_export.png)
|
2016-06-21 13:28:08 -04:00
|
|
|
|
2016-06-21 14:07:52 -04:00
|
|
|
## Importing the project
|
2016-06-21 13:28:08 -04:00
|
|
|
|
2016-06-21 14:07:52 -04:00
|
|
|
1. The new GitLab project import feature is at the far right of the import
|
|
|
|
options when creating a New Project. Make sure you are in the right namespace
|
2016-06-22 05:15:28 -04:00
|
|
|
and you have entered a project name. Click on **GitLab export**:
|
2016-06-21 13:28:08 -04:00
|
|
|
|
2016-06-22 05:41:50 -04:00
|
|
|
![New project](img/import_export_new_project.png)
|
2016-06-21 13:28:08 -04:00
|
|
|
|
2016-06-21 14:07:52 -04:00
|
|
|
1. You can see where the project will be imported to. You can now select file
|
2016-06-22 05:15:28 -04:00
|
|
|
exported previously:
|
2016-06-21 13:28:08 -04:00
|
|
|
|
2016-06-22 05:41:50 -04:00
|
|
|
![Select file](img/import_export_select_file.png)
|
2016-06-21 13:28:08 -04:00
|
|
|
|
2016-06-21 14:07:52 -04:00
|
|
|
1. Click on **Import project** to begin importing. Your newly imported project
|
2016-06-22 05:31:07 -04:00
|
|
|
page will appear soon.
|
2016-06-21 13:28:08 -04:00
|
|
|
|
|
|
|
[ce-3050]: https://gitlab.com/gitlab-org/gitlab-ce/issues/3050
|
2016-06-22 05:31:07 -04:00
|
|
|
[tmp]: ../../../development/shared_files.md
|