MongoRestore

    0

    0

    dinacea93

    This code imports a gzip-compressed BSON document into a Mongodb database on localhost:27017.

    // importa un bson gzip dentro un databaser
    
    mongorestore --host localhost:27017 --gzip --nsInclude 'test.test' item.bson.gz
    mongorestore --host localhost:27017 --gzip -d test -c item item.bson.gz
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.