When the email of an existing user matches the email of an imported user, that user is added as a
direct member
to the imported project.
If any of the previous conditions are not met, user contributions are not mapped correctly. Instead, all GitLab user associations are changed to the user who performed the import.
That user becomes an author of merge requests created by other users. Supplementary comments mentioning original authors are:
Added for comments, merge request approvals, linked tasks, and items.
Not added for the merge request or issue creator, added or removed labels, and merged-by information.
You can import project file exports that were exported from a version of GitLab up to two
minor
versions behind, which is similar to our process for
security releases
.
If you’re exporting a project from the Enterprise Edition to the Community Edition, you may lose
data that is retained only in the Enterprise Edition. For more information, see
downgrading from EE to CE
.
You must have at least the Maintainer role for the project.
To export a project and its data, follow these steps:
On the top bar, select
Main menu > Projects
and find your project.
On the left sidebar, select
Settings > General
.
Expand
Advanced
.
Select
Export project
.
After the export is generated, you should receive an email with a link to download the file.
Alternatively, you can come back to the project settings and download the file from there or
generate a new export. After the file is available, the page should show the
Download export
button.
The export is generated in your configured
shared_path
, a temporary shared directory, and then
moved to your configured
uploads_directory
. Every 24 hours, a worker deletes these export files.
Check the
project/import_export.yml
file for projects for your GitLab version (for example,
<https://gitlab.com/gitlab-org/gitlab/-/blob/15-9-stable-ee/lib/gitlab/import_export/project/import_export.yml>
for GitLab 15.9).
For a quick overview, items that are exported include:
Migrating projects with file exports uses the same export and import mechanisms as creating projects from templates at the
group
and
instance
levels. Therefore, the list of exported items is the same.
Only import projects from sources you trust. If you import a project from an untrusted source, it
may be possible for an attacker to steal your sensitive data.
Enter your project name and URL. Then select the file you exported previously.
Select
Import project
to begin importing. Your newly imported project page appears shortly.
To get the status of an import, you can query it through the
API
.
As described in the API documentation, the query may return an import error or exceptions.
If you didn't find what you were looking for,
search the docs
.
If you want help with something specific and could use community support,
post on the GitLab forum
.
For problems setting up or using this feature (depending on your GitLab
subscription).