Skip to content

schulzetenberg/mongo-selective-dump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mongo Selective Dump

Utilizes the mongodump utility to dump only a subset of a collection. The subset is based on a date range set in config & uses the _id field to determine the date a document was created.

Configure

Edit the JSON files located in the config folder

Run

npm install
node dump

Restore to Local DB

mongorestore (--drop parameter is required in order to delete an existing collection of the same name)

About

Dump documents based on the _id field date

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published