hex7c0 / mongodb-restore

restore data from mongodb-backup for Nodejs
https://github.com/hex7c0/mongodb-restore
Apache License 2.0
53 stars 21 forks source link

Problem with "dropCollections = [....]"? #7

Open thearabbit opened 8 years ago

thearabbit commented 8 years ago

I have 3 collections

A, B, C

1- I backup only one collection B. 2- Update the collection B.


I would like to restore above backup B

restore({
........
stream: backupFile (B)
dropCollections: [B]
})

It drop the B Collection, but don't restore file. Please help me.

hex7c0 commented 8 years ago

hey, mmm do you restore with stream of file?

Mgonand commented 8 years ago

I use tar file to restore and dropCollections with some collection names and it drops de collections but never restore the backup from tar file.

In addition I put a path to a directory where store de .log in the "logger" property and there is no .log after a done callback is called.

I don't know exactly what is wrong here.

hex7c0 commented 8 years ago

hey Mgonand, which version do you use?

Mgonand commented 8 years ago

I'm using 1.5.3.

hex7c0 commented 7 years ago

hi Mgonad, sorry for delay can you try with development version please?

Mgonand commented 7 years ago

I did some tricks in my code for workaround it and it's working without issues so better don't mess again with this. If you don't use dropCollections everything works well.