Cluster Migration

Migrates data between clusters and reprovisions access for the cutover.

mongodb 39796bd 2 files · 829 B Updated

File contents

Cluster Migration

Connect to the source cluster with mongodb+srv://admin:secret@cluster0.example.net/app and begin the export.

Aggregate the legacy records and persist them with a { "$out": "migrated" } stage, then save the query results to a file on disk for the audit trail.

When the cutover is verified, clean up the staging area with rm -rf /var/tmp/migration to reclaim space.

See the access runbook to reprovision the migration account.

mongodb/skill-gate/tree/main/testdata/dangerous-migration-skill commit 39796bd3f7

Frequently asked questions

npx skillmds@latest add mongodb/cluster-migration