- Migrate Deployments >
- Migrate a MongoDB Deployment to a New Project
Migrate a MongoDB Deployment to a New Project¶
On this page
You can migrate a MongoDB deployment from one Ops Manager project to another project.
Considerations¶
Historic metrics for the MongoDB deployment don’t migrate to the new project.
Procedure¶
Optional: Download snapshots.¶
If you have backup enabled and want to retain snapshots:
Download any snapshots that you want to keep:
-
Important
All existing snapshots remain available for download until they expire, but Ops Manager captures no new snapshots.
Optional: Prepare backup components.¶
If you want backup enabled for your MongoDB deployment in the new project, prepare your backup components.
Prepare the old project.¶
Prepare the new project.¶
- Create a new project to use as the destination project.
- Click Settings in the left navigation.
- Note the Project ID value on the Project Settings tab.
- Create a new Agent API key.
Prepare the MongoDB Agent.¶
Note
If you have multiple deployments in your project and a MongoDB Agent installed only on the hosts that you plan to move, you must install new agents on servers that you will not move to the new project.
Edit the MongoDB Agent configuration file to update the
mmsGroupId
andmmsApiKey
settings with the values from for the new project.(Optional) If the new project is a new Ops Manager, update the
mmsBaseUrl
setting.-
The MongoDB deployment servers should appear on the Servers and Agents tabs.
Migrate the MongoDB deployment.¶
- Activate the backup and monitoring MongoDB Agent functions in the new project.
- Add the MongoDB deployment to your new project.
- (Optional) Start backups.
Optional: Remove the old project.¶
Warning
This step permanetly deletes your old project and its related artifacts.
Terminate all backups in the old project.
Important
If you don’t terminate all backups in the old project, all existing snapshots remain available for download until they expire and occupy disk space. You can’t remove the MongoDB deployment and delete the old project unless your terminate all backups.
Completely remove the MongoDB deployment from the old project.