Synchronisation at all levels
I work with mongoDB databases on more than one server and used the DCS tool a short while which is great. However, it would be a time saver and boost development and test efficiency if it would be possible to:
1) Synchronise all documents in a collection on two different servers.
2) Synchronise all collections in a database on two different servers.
3) Synchronise all databases between two different servers.
Database names, collection names, document id's should be identical after the synchronise operation.
Synchronisation could be directional A-> B or B->A or bidirectional A<->B.
Options to control deletion must be available to ensure consistency and prevent unwanted deletions.
As of DCS 2.0 you can now synchronize all documents between 2 collections, and multiple/all collections between 2 servers
-
William Hayes commented
My thoughts on this feature:
In general when I am comparing/syncing two databases, it is to copy a production database to a dev database or copy an updated collection to production. I often need to do this over and over again - so it’s nice to be able to save ‘favorite’ syncs.
The other issue for prod to dev syncs is to remove sensitive or dangerous information from the prod database (e.g. PII, passwords or email which can be identified by a mongo query string and have a standard replace function on it).
I’d like to be able to set up a Sync without having to do a compare but with the dangerous field contents replaced. This isn’t far off of a export/import process as opposed to a compare/sync. The compare tool is nice to see differences in Schema between two collections or even databases. I don’t have a need to do document comparisons between collections generally - actually I can’t figure out when I’ve ever needed to do that, but the dev to prod and prod to dev migrations are something I do very often.