|
| 1 | +.. procedure:: |
| 2 | + :style: normal |
| 3 | + |
| 4 | + .. step:: Create an Atlas deployment. |
| 5 | + |
| 6 | + If you don't already have an Atlas deployment, :atlas:`create one |
| 7 | + </tutorial/create-new-cluster/>` now. |
| 8 | + |
| 9 | + .. step:: Stop your applications. |
| 10 | + |
| 11 | + Stopping your applications prevents any additional database writes |
| 12 | + from occurring while you move your data from ObjectRocket to Atlas. |
| 13 | + |
| 14 | + .. step:: Run ``mongodump`` on your ObjectRocket deployment. |
| 15 | + |
| 16 | + ``mongodump`` creates a binary export of the contents of your deployment. |
| 17 | + The :manual:`mongodump documentation </reference/program/mongodump/>` |
| 18 | + contains detailed instructions on using the ``mongodump`` utility. Use |
| 19 | + your ObjectRocket credentials to access your ObjectRocket deployment. |
| 20 | + In the following example, a user named ``db_user`` exports all databases |
| 21 | + to a directory named ``dump`` in the current working directory: |
| 22 | + |
| 23 | + .. code-block:: shell |
| 24 | +
|
| 25 | + mongodump --host iad-mongos2.objectrocket.com --port 12345 --username db_user --password "myPwd" --out dump |
| 26 | +
|
| 27 | + .. step:: Use ``mongorestore`` to restore the ``dump`` directory to your |
| 28 | + Atlas deployment. |
| 29 | + |
| 30 | + The :manual:`mongorestore documentation </reference/program/mongorestore/>` |
| 31 | + contains detailed instructions on using the ``mongorestore`` utility. Use |
| 32 | + your Atlas credentials to access your Atlas deployment. |
| 33 | + In the following example, a user named ``db_user`` restores the default |
| 34 | + ``dump`` directory to the host ``example1.mongodb.net``: |
| 35 | + |
| 36 | + .. code-block:: shell |
| 37 | +
|
| 38 | + mongorestore --host example1.mongodb.net --port 27017 --username db_user --password "myPwd" dump/ |
| 39 | +
|
| 40 | + .. step:: Verify your data integrity. |
| 41 | + |
| 42 | + Use the :atlas:`Atlas Data Explorer </data-explorer>` |
| 43 | + to verify that all of your collections are present and populate |
| 44 | + |
| 45 | + .. step:: Update your applications with your new connection string. |
| 46 | + |
| 47 | + Click the :guilabel:`Connect` button in the cluster panel for your Atlas |
| 48 | + cluster to obtain the connection string to use in your applications. |
| 49 | + To learn more about connecting to your Atlas cluster, see |
| 50 | + :atlas:`Connect to a Cluster </connect-to-cluster>`. |
| 51 | + |
| 52 | + .. step:: Restart your applications. |
| 53 | + |
| 54 | + You're ready to start using your Atlas deployment. |
0 commit comments