diff options
author | Michael Kozono <mkozono@gmail.com> | 2018-11-07 12:32:23 -0800 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2018-11-07 12:32:23 -0800 |
commit | d65f9cdbaa7607c009e8dddee15e4685a789ed30 (patch) | |
tree | a7625f198a89d2a7363f93b07c6f39c28827734b /doc | |
parent | f7ae84f96fcc43c1857bf5d6bc6fb33a689852f0 (diff) | |
download | gitlab-ce-d65f9cdbaa7607c009e8dddee15e4685a789ed30.tar.gz |
Add steps to manually migrate projects
Diffstat (limited to 'doc')
-rw-r--r-- | doc/raketasks/import.md | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/doc/raketasks/import.md b/doc/raketasks/import.md index 05f2c9bd83d..a1a6cfcce7f 100644 --- a/doc/raketasks/import.md +++ b/doc/raketasks/import.md @@ -114,4 +114,21 @@ The following are **not** importable as bare repositories: renamed or transferred in v10.4+. There is an [open issue to add a migration to make all bare repositories -importable](https://gitlab.com/gitlab-org/gitlab-ce/issues/41776).
\ No newline at end of file +importable](https://gitlab.com/gitlab-org/gitlab-ce/issues/41776). + +Until then, you may wish to manually migrate repositories yourself. You can use +[Rails console](https://docs.gitlab.com/omnibus/maintenance/#starting-a-rails-console-session) +to do so. In a Rails console session, run the following to migrate a project: + +``` +project = Project.find_by_full_path('gitlab-org/gitlab-ce') +project.write_repository_config +``` + +In a Rails console session, run the following to migrate all of a namespace's +projects (this may take awhile if there are 1000s of projects in a namespace): + +``` +namespace = Namespace.find_by_full_path('gitlab-org') +namespace.send(:write_projects_repository_config) +```
\ No newline at end of file |