mongodb-restore icon indicating copy to clipboard operation
mongodb-restore copied to clipboard

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

Open thearabbit opened this issue 10 years ago • 6 comments

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.

thearabbit avatar Oct 22 '15 05:10 thearabbit

hey, mmm do you restore with stream of file?

hex7c0 avatar Oct 26 '15 22:10 hex7c0

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.

Mgonand avatar Jul 20 '16 14:07 Mgonand

hey Mgonand, which version do you use?

hex7c0 avatar Jul 24 '16 10:07 hex7c0

I'm using 1.5.3.

Mgonand avatar Jul 24 '16 15:07 Mgonand

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

hex7c0 avatar Oct 23 '16 15:10 hex7c0

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.

Mgonand avatar Oct 25 '16 03:10 Mgonand