I’m trying use mongorestore with gz file:
i’ve the following directory:
__/tmp/bkp/dbbkp
|__ collection1.bson
|__ collection1.metadata.json
|__ collection2.bson
|__ collection2.metadata.json
|__ collection3.bson
|__ collection3.metadata.json
and i’m using
tar -cvzf /tmp/bkp/dbbkp.gz /tmp/bkp/dbbkp/*
and now i’ve the following files
__/tmp/bkp/dbbkp/
__/tmp/bkp/dbbkp.gz
now i want
mongorestore --gzip --archive=/tmp/bkp/dbbkp.gz
but i get this message
Failed: stream or file does not appear to be a mongodump archive
how can i use mongorestore in dbbkp.gz?