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
It works.....:)
ReplyDelete