gitlab-migration icon indicating copy to clipboard operation
gitlab-migration copied to clipboard

Migrate all user projects

Open noplanman opened this issue 3 years ago • 3 comments

Hi, is it possible to migrate all projects of a user, instead of only a group?

If so, what do i need to change in the code or what parameters do I need to pass?

noplanman avatar Jan 15 '22 15:01 noplanman

What has worked for me, is to update the very bottom of the script:

- migrateGroup "${SOURCE_PATH}"
+ migrateProjects "noplanman/proj1" "noplanman/proj2"

It's not fully automated, but works more than well enough for my needs 😇 Thanks so much for the script!

(Leaving open in case somebody wants to integrate this nicely. Feel free to close off if you want.)

noplanman avatar Jan 15 '22 19:01 noplanman

Hi @noplanman, great that you found a way to get this done with small alterations to the script. To understand your use case better: what exactly do you mean by "projects of a user":

  • All projects a users has access to
  • All personal projects that are located under your personal user namespace

From your code example I assume the latter but wanted to make sure

albuch avatar Jan 17 '22 17:01 albuch

Hi @albuch, you're right, I mean the personal user namespace projects 👍

noplanman avatar Jan 17 '22 19:01 noplanman