In your shell:
$ mongodump --archive=db-backup
Make sure mongodb-tools installed.
$ mongorestore --archive=db-backup