Backup and restore collection with driver

I want a better way to backup and restore the collection in programming.
For now, I have to call the mongodump or mongorestore CLI tools with a new process. Then transfer the input / output with a file (instead of a stream).
This way make the unnecessary couple with system environment. It need to install the mongo-tools, especially it’s a bigger trouble with cross-platform.

So it would be awesome if we provide a backup / restore API in drivers.