Skip to content

Commit 6b26f5a

Browse files
committed
doc updates
1 parent 356b2c8 commit 6b26f5a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

articles/cosmos-db/mongodb/vcore/how-to-migrate-native-tools.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,18 @@ Migrate a collection from the source MongoDB instance to the target Azure Cosmos
157157

158158
```bash
159159
mongorestore \
160-
--db <database-name> \
161-
--collection <collection-name> \
162160
--ssl \
163161
--uri <target-connection-string> \
164162
<dump-directory>/<database-name>/<collection-name>.bson
165163
```
164+
> [!NOTE]
165+
> You can also restore a specific collection or collections from the dump/ directory. For example, the following operation restores a single collection from corresponding data files in the dump/ directory:
166166

167+
```bash
168+
mongorestore \
169+
--nsInclude=test.purchaseorders dump/
170+
```
171+
167172
1. Monitor the terminal output from *mongoimport*. The output prints lines of text to the terminal with updates on the restore operation's status.
168173
169174
---

0 commit comments

Comments
 (0)