{"id":21740558,"url":"https://github.com/writecrow/corpus_migrate","last_synced_at":"2026-05-17T15:39:42.353Z","repository":{"id":97886541,"uuid":"305521060","full_name":"writecrow/corpus_migrate","owner":"writecrow","description":"Migrate users and taxonomy from an existing site to a fresh installation of the same configuration","archived":false,"fork":false,"pushed_at":"2021-02-27T01:51:43.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-21T01:14:25.468Z","etag":null,"topics":["drupal","migrate","migration"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/writecrow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-19T21:49:04.000Z","updated_at":"2021-02-27T01:51:46.000Z","dependencies_parsed_at":"2023-05-31T11:46:24.254Z","dependency_job_id":null,"html_url":"https://github.com/writecrow/corpus_migrate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/writecrow/corpus_migrate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writecrow%2Fcorpus_migrate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writecrow%2Fcorpus_migrate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writecrow%2Fcorpus_migrate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writecrow%2Fcorpus_migrate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/writecrow","download_url":"https://codeload.github.com/writecrow/corpus_migrate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writecrow%2Fcorpus_migrate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278708004,"owners_count":26031932,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drupal","migrate","migration"],"created_at":"2024-11-26T06:14:00.911Z","updated_at":"2025-10-07T02:13:11.013Z","avatar_url":"https://github.com/writecrow.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Summary\nThis module provides a method for migrating the users and taxonomy terms from\nan existing Drupal 8+ site to a fresh installation of a site with the same configuration (i.e., content types, taxonomy, etc.). This is\nuseful for contexts where you want to drop all node data but retain user information\nin order to do a reimport of node data, or a migration of that data to a different\ndata structure.\n\n### Notes\n- It is the responsibility of the user to migrate all site configuration. The recommended way of achieving this is through configuration management.\n- As a true installation + migration, artifacts such as database logs, State API data, or environment-specific configuration will not be reflected. Only that which is specified to be migrated will be migrated.\n\n## Setup\n1. Register a new database connection that you can use as the source. The following example shows a setup using lando, but the principle is the same for all local development:\n\nIn `.lando.yml`:\n\n```yml\nservices:\n  source_database:\n    type: mysql\n```\n\nIn `settings.php`:\n```php\n$databases['migrate']['default'] = [\n  'database' =\u003e $lando_info['source_database']['creds']['database'],\n  'username' =\u003e $lando_info['source_database']['creds']['user'],\n  'password' =\u003e $lando_info['source_database']['creds']['password'],\n  'host' =\u003e $lando_info['source_database']['internal_connection']['host'],\n  'prefix' =\u003e '',\n  'namespace' =\u003e 'Drupal\\\\Core\\\\Database\\\\Driver\\\\mysql',\n  'driver' =\u003e 'mysql',\n];\n```\n\n2. Import the source database \n\n```\nlando db-import source.sql.gz --host=source_database\n```\n\n3. Install the site afresh using configuration IDs\n\n```\nlando drush si -y\nlando drush config-get \"system.site\" uuid\nlando drush config-set \"system.site\" uuid \u003cvalue\u003e\nlando drush config-get \"language.entity.en\" uuid\nlando drush config-set \"language.entity.en\" uuid \u003cvalue\u003e\nlando drush cim -y\n```\n\n4. Run the migration\n\n```\nlando drush en corpus_migrate -y \u0026\u0026 lando drush mim\n```\n\n## References/adaptations\n- https://drupal.org/project/migrate_drupal_d8\n- https://thinktandem.io/blog/2020/03/12/migrating-a-drupal-8-multisite-to-a-standalone-drupal-8-site/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwritecrow%2Fcorpus_migrate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwritecrow%2Fcorpus_migrate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwritecrow%2Fcorpus_migrate/lists"}