Skip to content
Snippets Groups Projects
Commit ca1da3c2 authored by Donghee Kang's avatar Donghee Kang
Browse files

Update README.md

parent d95492f5
No related branches found
No related tags found
No related merge requests found
......@@ -19,18 +19,18 @@ Usage: migration_group_export_import.py
1. add your personal access token (PAT) getting from the source and target gitlab both.
2. In source(pilot) gitlab, find out the group id, which will be migrated. You should access it from the web browser.
3. In target(new) gitlab, define the `path`` of your subgroup. (not group name)
- `group_namespace_in_target = 'kit/institute/migration'`
- `group_namespace_in_target = 'kit/institute/my_group'`
In the target gitlab, a group structure "KIT / Institute" has to be eanbled in advance.
If the last subgroup "migration" is not existing, "migration" will be created first and projects wil be transferred on this subgroup.
If the last subgroup "migration" is already existing, then all projects will be transferred to existing subgroup, directly.
If the last subgroup "my_group" is not existing, "my_group" will be created first and projects wil be transferred on this subgroup.
If the last subgroup "my_group" is already existing, then all projects will be transferred to existing subgroup, directly.
> $ python3 migration_group_export_import.py
Procedure:
1. Exporting projects in a group `my_group` from the source gitlab. You needs to know `group_id` for this group `my_group`
2. Download exported files to the local directory `"{PWD}/exported_files"`
3. Importing the exported files to the target gitlab on `"kit/institute/migration"`
3. Importing the exported files to the target gitlab on `"kit/institute/my_group"`
 
......@@ -39,17 +39,17 @@ Usage: migration_group_import_only.py
1. add your personal access token (PAT) getting from the target gitlab only.
2. define a set of exported files, that are located under the local directory `"{PWD}/exported_files"`
3. In target(new) gitlab, define the path of your subgroup
- `group_namespace_in_target = 'kit/institute/migration'`
- `group_namespace_in_target = 'kit/institute/my_group'`
In the target gitlab, a group structure "KIT / Institute" has to be eanbled in advance.
If the last subgroup "migration" is not existing, "migration" will be created first and projects wil be transferred on this subgroup.
If the last subgroup "migration" is already existing, then all projects will be transferred to existing subgroup, directly.
If the last subgroup "my_group" is not existing, "my_group" will be created first and projects wil be transferred on this subgroup.
If the last subgroup "my_group" is already existing, then all projects will be transferred to existing subgroup, directly.
> $ python3 migration_group_improt_only.py
Procedure:
1. No exporting and download is requried. In the directory`"{PWD}/exported_files"` all `*_exported.tar.gz"` files(=projects) are enabled to use.
2. Importing the exported files to the target gitlab on the subgroup `"kit/institute/migration"`
2. Importing the exported files to the target gitlab on the subgroup `"kit/institute/my_group"`
 
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment