Questions tagged [mongodb-tools]

The MongoDB Database Tools are a collection of command-line utilities for working with a MongoDB deployment.

The MongoDB Database Tools are a collection of command-line utilities for working with a MongoDB deployment.

The Database Tools include the following binaries:

12 questions
4
votes
2 answers

Mongoexport "ERROR PARSING URI" error - MONGODB

Facing below error while executing mongoexport command.Connection string below. MongoDB shell version v4.2.0 OS - Mac OS Catalina mongoexport --uri="mongodb+srv://m001-student:m001-****@sandbox.*****.mongodb.net/sample_supplies" --collection=sales…
user23062
  • 45
  • 1
  • 4
1
vote
1 answer

Delete a Mongodb Database using Mongo Tools

Using mongo tools only..... Is there a way to delete a remote Mongo Atlas Database using the mongoDB Command Line DB tools, is it doable using MongoDB Atlas API (via curl), or is it only doable using the Mongo Shell ?? The system I am working on…
Walter Kelt
  • 2,199
  • 1
  • 18
  • 22
1
vote
1 answer

Is mongorestore.exe file present in mongo 4.4?

Is mongorestore.exe file present in mongo 4.4 community edition? If not, how is the restoration done in mongo 4.4?
0
votes
0 answers

mongoimport: could not parse token date

Here's a sample date. I am having this error in mongoimport: Failed: type coercion failure in document #0 for column 'createDate', could not parse token 'Tue Oct 26 2021 17:00:32 GMT+0800 (Singapore Standard Time)' to type date I have this string…
Range
  • 3
  • 4
0
votes
1 answer

How do I update in ubuntu 20.4 with https// ... release not found error

I am trying to update my packages in ubuntu 20.4 but its not working and gives the error below Err:13 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/3.6.3 Release 404 Not Found [IP: 18.165.201.119 443] I have removed or uninstall mongodb…
0
votes
1 answer

Is there a way to install mongodb-tools on debian11 on arm64

I need to use a Docker image based on Debian 11, that runs on a Macbook M1 so on ARM64. In the Mongo download centre https://www.mongodb.com/try/download/bi-connector at "MongoDB Command Line Database Tools Download" there is no option for…
0
votes
2 answers

Mongorestore a single collection through stdin output

I would like to copy a MongoDB collection to another database in a single command line using the standard output. I don't want to dump the entire database. The target collection will have a different name from the copy. Here is my command : >…
Martin Allusse
  • 85
  • 1
  • 1
  • 7
0
votes
1 answer

Why is mongodump performing a COLLSCAN?

I am trying to do a monogdump action to export DB, all records. There's no query parameters passed to the mongodump command as well. MongoDB version is 4.4.3 I still see that it's performing a COLLSCAN from the mongo logs. { "t": { "$date":…
swateek
  • 6,735
  • 8
  • 34
  • 48
0
votes
1 answer

Dumping and restoring MongoDB in a single command

I'm trying to dump an existing MongoDB into a new MongoDB without using dump files at all. Is there a way to pass data from mongodump into mongorestore using pipes? something like this: mongodump --host=0.0.0.0 --port=27017 --db=database_name |…
Alon Barad
  • 1,491
  • 1
  • 13
  • 26
0
votes
1 answer

mongoexport / mongodump with option --uri

During my studying of MongoDB I tried to dump a collection from training course's mongo database. I tried both mongodump and mongoexport. My shell command is like mongoexport…
Yuriy L.
  • 95
  • 12
0
votes
0 answers

How to import a CSV file with a field having leading zero values into MongoDB?

MongoDB seems to have trouble importing data, I tried to import csv file with values having leading zeros enclosed in double quotes but once imported the leading zeros gets removed. Sample CSV…
apelidoko
  • 782
  • 1
  • 7
  • 23
0
votes
2 answers

mongoimport and mongorestore won't connect to CosmosDB 3.6, retrywrites option is not recognized

In the older CosmosDB 3.2 I was able to use mongoimport to take data previously backed up by mongoexport and import it into CosmosDB collections. All was well and good. With the newer CosmosDB 3.6, the same command gets the error: Retryable writes…
Dan
  • 894
  • 9
  • 21