Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a mongodb server (A) and a http server (B). I would like to run mongodump and mongorestore commands on http server (B) to backup data on server B. But these tools comes with mongodb installation and i don't want to install mongodb to my http server.

How can i achieve this?

share|improve this question
You mean you don't want to download the binaries? There's no need to "install" mongodb as a package of your distro – user Jan 19 '12 at 15:33
What distribution are you using? – rvs Jan 21 '12 at 9:07
ubuntu-debian installed via: – edigu Jan 22 '12 at 12:19
apt-get install mongodb-clients (or sudo apt-get install mongodb-clients) worked for me on Ubuntu 14.04 when needing just the client and not the 'weight' of the full install. I know we're not talking about much of a footprint but I tend to subscribe to the 'only what you need' model of server admin. – J Lawson Dec 29 '14 at 18:12
up vote 4 down vote accepted

10gen doesn't providing seperate packages like server - clients - dev & doc for mongodb (at least i can't find 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.

share|improve this answer
You should mark the question closed since it sounds like your problem is solved. – gWaldo Jan 22 '12 at 2:19

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.

share|improve this answer

For those installing on Amazon Ubuntu on EC2 using the 10gen yum repository for MongoDB, I had to sudo yum install mongo-10gen.x86_64 to get mongo, mongodump, mongorestore and mongos.

Don't forget you can always sudo yum search mongo...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.