Local
Dump
mongodump -d <database_name> -o <directory_backup>
Restore
mongorestore -d <database_name> <directory_backup>
Remote
Dump
mongodump --uri <uri_string> -o <directory_backup>
Restore
mongorestore --uri <uri_string> <directory_backup>
Note that I would recommend against using mongodump/mongorestore for big data storages. It is very slow and once you get past 10/20GB of data it can take hours to restore.