1
vote
1answer
210 views

Incremental backup mongodb using rsync

I want to store small files (60 kb, couple of millions) into MongoDB, I was thinking using GridFS, but it seems BSON will do. Anyway, I want to make rsync to backup the mongodb chunk files, so ...
0
votes
1answer
63 views

Backup MongoDB database copying files in `dbpath`?

I need a daily backup of all MongoDB databases in our single-instance server (without stopping the MongoDB service). Our server is in Rackspace so I'm wondering if a valid strategy could be just add ...
1
vote
1answer
158 views

ec2-consistent-snapshot mongodb - mongod.lock file

I'm trying out ec2-consistent-snapshot with --mongo --freeze-filesystem options. The snapshot itself works great. However, after I restore the volume and try to use it with a new instance, when I ...
2
votes
1answer
150 views

LVM+MongoDB. Dropping in speed of backup creation

Till recent time we have been making mongo backups archiving LVM snapshot on hidden SECONDARY server with RAID10 on SAS disks. Currently operation on making snapshot from volume with 500 Gb of data ...
4
votes
1answer
212 views

MongoDB Disaster Prep on AWS

I'm looking for best practice advice covering MongoDB disaster recovery within an AWS hosted environment. Our setup is fairly standard at this point, replica set of 3 servers (1 primary, 1 secondary, ...
2
votes
1answer
220 views

Using mongodump with an auth enabled mongodb server

I'm trying to do a daily backup of my mongodb server (auth enabled) using the mongodump tool. mongodump provides two parameters to set the credentials: -u [ --username ] arg username -p [ ...
2
votes
3answers
1k views

Using mongodb tools (mongodump, mongorestore) from another machine

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 ...
1
vote
2answers
207 views

Mongodump from slave only outputs 101 objects

I have a mongo 1.8.3 master/slave setup. slave replication works and tests (collection sizes, query results, updates) all pass. when i am trying to dump a collection from the slave that actually has ...
11
votes
3answers
930 views

Is this a valid backup strategy for MongoDB?

I've got a single dedicated server with a MongoDB database of around 10GB. I need to do daily backups, but I can't have downtime with the database. Is it possible to use a replica set on a single disk ...
2
votes
3answers
590 views

Why does my backup script work when I run it, but not when it's run via cron?

This is my script, backup_mongo.sh #!/bin/bash suffix=$(date +%w) rm /home/myuser/backup/mongo-$suffix -rf mkdir /home/myuser/backup/mongo-$suffix mongodump -h$1 -u$2 -p$3 -dmydb ...