GitLab

GitLab -

GitLab project migration and automation - a perfect pair for faster, easier transfers

Since Version 14.3, GitLab has supported migrating GitLab groups by direct transfer, where, rather than manually uploading export files, data is transferred directly from the source instance to the destination instance. We have been working to extend this functionality to projects and are including the ability to migrate projects by direct transfer as a beta in GitLab 15.8. This beta feature is available to everyone, enabled by default on GitLab.com and with some configuration on self-managed GitLab instances. Benefits of the direct transfer method Migrating by direct transfer enables you to easily migrate GitLab group and project resources between GitLab instances and within the same GitLab instance, using either the UI or API. This is a major improvement from migrating groups and projects using file exports because: You don't need to manually export each individual group and project to a file and then import all those export files to a new location. Now any top-level group you have the Owner role for (plus subgroups when using API) and all its projects can be migrated automatically, making your work more efficient. When migrating from GitLab Self-Managed to GitLab.com, user associations (such as comment author) previously were linked to the user who ran the import. Migration using direct transfer maps users and their contributions correctly, provided a few conditions are met. Availability of the feature The beta release for migrating GitLab projects with top-level groups by direct transfer is available on GitLab.com. You can migrate from a self-managed GitLab instance to GitLab.com or within GitLab.com right now! GitLab Self-Managed users have access to migrating projects by direct transfer beta, too. Administrators need to enable: an application setting for migrating groups the bulk_import_projects feature flag, for migrating projects in the groups We recommend upgrading self-managed instances to the latest version possible before migrating groups and projects. Trying the new feature out To get started with the new feature, you can either read the documentation or follow the steps below. Make sure the feature is available to you. Generate or copy a personal access token with the api scope on your source GitLab instance. Both api and read_repository scopes are required when migrating from GitLab 15.0 and earlier. On the top navigation, select +, then New group, and then Import group. Enter the URL of your source GitLab instance. Enter the personal access token for your source GitLab instance and select Connect instance. Select the groups to import from the top-level groups on the connected source instance you have the Owner role for. All the projects within chosen groups can be migrated too! Choose from the dropdown the group you want to migrate to for each group you have selected. Adjust the newly created group name, if needed. Next to the groups you want to import, select Import with projects. The Status column shows the import status of each group. If you leave the page open, it updates in real time. After a group has been imported, select its GitLab path to open the imported group. For more information about migrating by direct transfer (for example, what resources are migrated and group import history), see our documentation. What about migrating projects using file exports? Once the migrating projects by direct transfer feature is ready for production use at any scale, migrating groups and projects using file exports will be disabled by a feature flag and only migrating groups and projects by direct transfer will be available in the UI and API. Because migrating by direct transfer requires network connection between instances or GitLab.com, customers that are using air-gapped networks with no network connectivity between their GitLab instances will need to reenable migrating using file exports. They will be able to use migrating groups and projects by direct transfer after we extend this solution to also support offline instances. We will not fully remove migrating using file exports until we support all our customers with a new solution. What's next for migrating by direct transfer method Of course, we're not done yet! We will be improving the direct transfer method before we come out of beta. We're working on: Making the migration efficient and reliable for large projects. Improving feedback during migration and when migration is finished. Next, we will be focusing on: Enabling more granular imports, where you'll be able to: Migrate any group in the UI, not only top-level ones. Migrating subgroups is currently limited to the API. Choose which projects within a group you want to migrate. Importing project relations not yet included in migration. Automatically migrating users. Details about the migrating by direct transfer roadmap can be found on our direction page. We are excited about this roadmap and hope you are too! We want to hear from you. What's the most important missing piece for you? What else can we improve? Let us know in the feedback issue and we'll keep iterating! Disclaimer: This blog contains information related to upcoming products, features, and functionality. It is important to note that the information in this blog post is for informational purposes only. Please do not rely on this information for purchasing or planning purposes. As with all projects, the items mentioned in this blog and linked pages are subject to change or delay. The development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab. Cover photo by Chris Briggs on Unsplash

gitlab

相关推荐 去reddit讨论

热榜 Top10

LigaAI
LigaAI
eolink
eolink
Dify.AI
Dify.AI
观测云
观测云

推荐或自荐