mongoexport and mongoimport with query from one host to one host
I would like to query the data that I need only from a server to another server, and I just use one line of command in linux shell [code lang="shell"] mongoexport -h fromHost.com -d fromDB -c fromCollection -q ‘{ count: { $gte: 1 } }’ | mongoimport -h toHost.com -d toNewDB -c toNewCollection [/code] If […]
mongoexport and mongoimport with query from one host to one host Read More »