Mongo Backup Problem when using mongodump

102 views
Skip to first unread message

kimso

unread,
Feb 20, 2012, 4:17:09 AM2/20/12
to mongodb-user
Hi all,

I met a problem with mongodump.
I have a mongod running and there are 5 dbs within. Such as:
> show dbs
* (empty)
local (empty)
log (empty)
admin 0.203125GB
base 0.203125GB
center 0.953125GB
game 7.9501953125GB
log 1.953125GB

When I run mongodump manually to backup mongo data. It works just
fine. The command is:
/usr/local/mongodb/bin/mongodump -o ./mongo_data_backup

But there is problem when I run the back command using crontab. (Note:
I put the command above in a script file backup_mongo.sh).
[root@llj sh]# crontab -l
30 4 * * * /server/sh/backup_mongo.sh

I can only backup 3 dbs (admin, base, log). The "center" and "game"
dbs are missing.

What may be the cause of this issue?

Thanks!



Eliot Horowitz

unread,
Feb 20, 2012, 9:24:38 PM2/20/12
to mongod...@googlegroups.com
can you show the output of mongodump

> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>

Reply all
Reply to author
Forward
0 new messages