Search code examples
c#mongodbmongodb-.net-driver

Run MongoDump / MongoRestore in C#


Is there an easy way to run these commands using the C# driver? The only documentation I found involves running the EXE as a process etc, which seems a bit heavy.

The only related question I found was unanswered... am I missing something fundamental here?

http://grokbase.com/t/gg/mongodb-user/127zntq9pr/mongodump-in-c


Solution

  • mongodump and mongorestore are applications, not MongoDB commands which is why you would have to run the executable.