- Configure allowed import sources
- Enable project export
- Enable migration of groups and projects by direct transfer
- Max export size
- Max import size
- Maximum remote file size for imports
- Maximum download file size for imports by direct transfer
- Maximum decompressed file size for imported archives
- Timeout for decompressing archived files
Import and export settings
Settings for import- and export-related features.
Configure allowed import sources
Before you can import projects from other systems, you must enable the import source for that system.
- Sign in to GitLab as a user with Administrator access level.
- On the left sidebar, select Search or go to.
- Select Admin Area.
- Select Settings > General.
- Expand the Import and export settings section.
- Select each of Import sources to allow.
- Select Save changes.
Enable project export
To enable the export of projects and their data:
- Sign in to GitLab as a user with Administrator access level.
- On the left sidebar, select Search or go to.
- Select Admin Area.
- Select Settings > General.
- Expand the Import and export settings section.
- Scroll to Project export.
- Select the Enabled checkbox.
- Select Save changes.
Enable migration of groups and projects by direct transfer
Introduced in GitLab 15.8.
You can enable migration of groups by direct transfer using the UI.
To enable migration of groups by direct transfer:
- Sign in to GitLab as a user with Administrator access level.
- On the left sidebar, select Search or go to.
- Select Admin Area.
- Select Settings > General.
- Expand the Import and export settings section.
- Scroll to Allow migrating GitLab groups and projects by direct transfer.
- Select the Enabled checkbox.
- Select Save changes.
The same setting
is available in the API as the
bulk_import_enabled
attribute.
Max export size
Introduced in GitLab 15.0.
To modify the maximum file size for exports in GitLab:
- On the left sidebar, select Search or go to.
- Select Admin Area.
- Select Settings > General, then expand Import and export settings.
- Increase or decrease by changing the value in Maximum export size (MiB).
Max import size
Changed from 50 MB to unlimited in GitLab 13.8.
To modify the maximum file size for imports in GitLab:
- On the left sidebar, select Search or go to.
- Select Admin Area.
- Select Settings > General.
- Expand Import and export settings.
- Increase or decrease by changing the value in Maximum import size (MiB).
This setting applies only to repositories imported from a GitLab export file.
If you choose a size larger than the configured value for the web server, you may receive errors. See the troubleshooting section for more details.
For GitLab.com repository size limits, read accounts and limit settings.
Maximum remote file size for imports
Introduced in GitLab 16.3.
You can modify the maximum remote file size for imports from external object storages (for example, AWS) in GitLab.
To modify the maximum import remote file size:
- On the left sidebar, select Search or go to.
- Select Admin Area.
- Select Settings > General.
- Expand Import and export settings.
- Increase or decrease by changing the value in Maximum import remote file size (MiB). Set to
0
to set no file size limit.
Maximum download file size for imports by direct transfer
Introduced in GitLab 16.3.
You can modify the maximum download file size for imports by direct transfer in GitLab.
To modify the maximum download file size for imports by direct transfer:
- On the left sidebar, select Search or go to.
- Select Admin Area.
- Select Settings > General.
- Expand Import and export settings.
- Increase or decrease by changing the value in Direct transfer maximum download file size (MiB). Set to
0
to set no download file size limit.
Maximum decompressed file size for imported archives
- Introduced in GitLab 16.3.
- Maximum decompressed file size for archives from imports field renamed from Maximum decompressed size in GitLab 16.4.
When you import a project using file exports or direct transfer, you can specify the maximum decompressed file size for imported archives. The default value is 25 GB.
When you import a compressed file, the decompressed size cannot exceed the maximum decompressed file size limit. If the decompressed size exceeds the configured limit, the following error is returned:
Decompressed archive size validation failed.
To modify the maximum decompressed file size for imports in GitLab:
- On the left sidebar, select Search or go to.
- Select Admin Area.
- Select Settings > General.
- Expand Import and export settings.
- Set another value for Maximum decompressed file size for archives from imports (MiB).
Timeout for decompressing archived files
Introduced in GitLab 16.4.
When you import a project, you can specify the maximum time out for decompressing imported archives. The default value is 210 seconds.
To modify the maximum decompressed file size for imports in GitLab:
- On the left sidebar, select Search or go to.
- Select Admin Area.
- Select Settings > General.
- Expand Import and export settings.
- Set another value for Timeout for decompressing archived files (seconds).