mongodb - mongorestore fails due to invalid BSONSize -


i have script dumps mongodb

mongodump --archive=$mongodb_path --host $mongodb_host --port $mongodb_port --username $mongodb_user --password $mongodb_pass --db $mongodb_name

but when try restore with

mongorestore -d db_name backup/dump

it fails with:

failed: dump_name: error restoring backup/dump/dump_name: reading bson input: invalid bsonsize: -2120621459 bytes

i tried --batchsize=100 didn't solve issue me.

what's going wrong here?

solution was: mongorestore --archive=backup/dump


Comments

Post a Comment

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -