gridfsmigrate
gridfsmigrate copied to clipboard
Support mongo url
For example:
mongo_url = 'mongodb://root:password@host1:3717,host2:3717/rocketchat?replicaSet=rs0&authSource=admin'
Replace MongoClient(host=self.host, port=self.port)[self.db] with MongoClient(mongo_url)[self.db]