debian-mirror-gitlab/doc/user/group/settings/import_export.md

134 lines
5.5 KiB
Markdown
Raw Normal View History

2020-06-23 00:09:42 +05:30
---
type: reference
stage: Manage
group: Import
2021-02-22 17:27:13 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2020-06-23 00:09:42 +05:30
---
2020-05-24 23:13:21 +05:30
# Group Import/Export
> - [Introduced](https://gitlab.com/groups/gitlab-org/-/epics/2888) in GitLab 13.0 as an experimental feature. May change in future releases.
Existing groups running on any GitLab instance or GitLab.com can be exported with all their related data and moved to a
new GitLab instance.
The **GitLab import/export** button is displayed if the group import option in enabled.
See also:
- [Group Import/Export API](../../../api/group_import_export.md)
- [Project Import/Export](../../project/settings/import_export.md)
- [Project Import/Export API](../../../api/project_import_export.md)
To enable GitLab import/export:
2020-10-24 23:57:45 +05:30
1. Navigate to **Admin Area > Settings > Visibility and access controls**.
2020-05-24 23:13:21 +05:30
1. Scroll to **Import sources**
1. Enable desired **Import sources**
## Important Notes
Note the following:
- Exports are stored in a temporary [shared directory](../../../development/shared_files.md) and are deleted every 24 hours by a specific worker.
- To preserve group-level relationships from imported projects, run the Group Import/Export first, to allow projects to
be imported into the desired group structure.
- Imported groups are given a `private` visibility level, unless imported into a parent group.
2020-10-24 23:57:45 +05:30
- If imported into a parent group, a subgroup inherits the same level of visibility unless otherwise restricted.
2020-05-24 23:13:21 +05:30
- To preserve the member list and their respective permissions on imported groups, review the users in these groups. Make
sure these users exist before importing the desired groups.
### Exported Contents
2020-10-24 23:57:45 +05:30
The following items are exported:
2020-05-24 23:13:21 +05:30
- Milestones
- Labels
- Boards and Board Lists
- Badges
- Subgroups (including all the aforementioned data)
- Epics
- Events
2021-03-11 19:13:27 +05:30
- Wikis **(PREMIUM SELF)** (Introduced in [GitLab 13.9](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/53247))
2020-05-24 23:13:21 +05:30
2020-10-24 23:57:45 +05:30
The following items are **not** exported:
2020-05-24 23:13:21 +05:30
- Projects
2020-11-24 15:15:51 +05:30
- Runner tokens
2020-05-24 23:13:21 +05:30
- SAML discovery tokens
2021-02-22 17:27:13 +05:30
NOTE:
2020-05-24 23:13:21 +05:30
For more details on the specific data persisted in a group export, see the
[`import_export.yml`](https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/import_export/group/import_export.yml) file.
## Exporting a Group
1. Navigate to your group's homepage.
2020-10-24 23:57:45 +05:30
1. Click **Settings** in the sidebar.
2020-05-24 23:13:21 +05:30
1. In the **Advanced** section, click the **Export Group** button.
2020-06-23 00:09:42 +05:30
![Export group panel](img/export_panel_v13_0.png)
2020-05-24 23:13:21 +05:30
2021-03-11 19:13:27 +05:30
1. After the export is generated, you should receive an e-mail with a link to the [exported contents](#exported-contents)
2020-05-24 23:13:21 +05:30
in a compressed tar archive, with contents in JSON format.
1. Alternatively, you can come back to the project settings and download the
file from there by clicking **Download export**, or generate a new file by clicking **Regenerate export**.
2021-02-22 17:27:13 +05:30
NOTE:
2021-03-08 18:12:59 +05:30
The maximum import file size can be set by the Administrator, default is `0` (unlimited).
2021-03-11 19:13:27 +05:30
As an administrator, you can modify the maximum import file size. To do so, use the `max_import_size` option in the [Application settings API](../../../api/settings.md#change-application-settings) or the [Admin UI](../../admin_area/settings/account_and_limit_settings.md). Default [modified](https://gitlab.com/gitlab-org/gitlab/-/issues/251106) from 50MB to 0 in GitLab 13.8.
2020-06-23 00:09:42 +05:30
2020-05-24 23:13:21 +05:30
### Between CE and EE
You can export groups from the [Community Edition to the Enterprise Edition](https://about.gitlab.com/install/ce-or-ee/) and vice versa.
2020-10-24 23:57:45 +05:30
The Enterprise Edition retains some group data that isn't part of the Community Edition. If you're exporting a group from the Enterprise Edition to the Community Edition, you may lose this data. For more information, see [downgrading from EE to CE](../../../README.md).
2020-05-24 23:13:21 +05:30
2020-06-23 00:09:42 +05:30
## Importing the group
1. Navigate to the New Group page, either via the `+` button in the top navigation bar, or the **New subgroup** button
on an existing group's page.
![Navigation paths to create a new group](img/new_group_navigation_v13_1.png)
1. On the New Group page, select the **Import group** tab.
2020-11-24 15:15:51 +05:30
![Fill in group details](img/import_panel_v13_4.png)
2020-06-23 00:09:42 +05:30
1. Enter your group name.
1. Accept or modify the associated group URL.
1. Click **Choose file**
1. Select the file that you exported in the [exporting a group](#exporting-a-group) section.
2020-10-24 23:57:45 +05:30
1. Click **Import group** to begin importing. Your newly imported group page appears after the operation completes.
2020-06-23 00:09:42 +05:30
2020-05-24 23:13:21 +05:30
## Version history
GitLab can import bundles that were exported from a different GitLab deployment.
This ability is limited to two previous GitLab [minor](../../../policy/maintenance.md#versioning)
releases, which is similar to our process for [Security Releases](../../../policy/maintenance.md#security-releases).
For example:
| Current version | Can import bundles exported from |
|-----------------|----------------------------------|
| 13.0 | 13.0, 12.10, 12.9 |
| 13.1 | 13.1, 13.0, 12.10 |
## Rate Limits
2021-02-22 17:27:13 +05:30
To help avoid abuse, by default, users are rate limited to:
2020-05-24 23:13:21 +05:30
2020-06-23 00:09:42 +05:30
| Request Type | Limit |
| ---------------- | ---------------------------------------- |
2021-02-22 17:27:13 +05:30
| Export | 6 groups per minute |
| Download export | 1 download per group per minute |
| Import | 6 groups per minute |
Please note that GitLab.com may have [different settings](../../gitlab_com/index.md#importexport) from the defaults.