Utility to move data between NoSQL databases.
Features
- Import/export MongoDB databases
- Automatic selection of all collections
- Include/exclude collections for partial imports and exports
You can use dbclone
command in your terminal if you install the package
globally (npm install dbclone -g
).
CLI OPTIONS
Two modes are supported: import
and export
.
They both need MongoDB host and database name).
You can also specify the data directory for more flexibility.
TBD. See example.js for a quick demo.
- support db dropping, counting documents and diffing two databases
- store data types
- add support for indexed properties
- add backends for other database types
- destructive/clean mode (drop db before import to force clean state)
- force mode (in non-destructive mode) to override existing documents / controlled upsert
- cleaner interfaces in libs
- documentation
- Maintenance: changed license from deprecated
LGPL-3.0
toMIT
- Bugfix: preserving correct types (fixes problem with ObjectIDs imported as strings)
- Bugfix: fixed include/exclude parsing
- Feature: added count method (thanks @thiagormagalhaes)
- basic import and export functionality