Using mongodb tools (mongodump, mongorestore) from another machine
I know this is quite an old question, but googling took me there. On ubuntu 14.04 I have a following line in /etc/sources.list.d/mongo.list
to have the 3.2 version there:
deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse
The source contains few packages. According to the MongoDB Manual it's like this:
mongodb-org
- A metapackage that will automatically install the four component packages listed below.mongodb-org-server
- Contains the mongod daemon and associated configuration and init scripts.mongodb-org-mongos
- Contains the mongos daemon.mongodb-org-shell
- Contains the mongo shell.mongodb-org-tools
- Contains the following MongoDB tools: mongoimport bsondump, mongodump, mongoexport, mongofiles, mongooplog, mongoperf, mongorestore, mongostat, and mongotop.
So in your case the mongodb-org-tools
should be enough.
Usually Linux distributions create several packages from a single software, like server, clients, dev and doc.
For example, on Debian, you can install the mongodb-clients package that contains mongodump and mongorestore and does not install the mongodb server.
10gen doesn't provide seperate packages such as server - clients - dev & doc for mongodb (at least I couldn't found for Ubuntu 10.04). So I just copied /usr/bin/mongodump and /usr/bin/mongorestore binaries to my HTTP server manually (machines were same architecture) Now i'm running these commands on my server which doesn't have any mongodb installation without problems.