Ich mochte fur ein backup machen eine coll
Sammlung kopieren, um eine Datenbank in MongoDB zu sichern. Also habe ich es versucht:
>>> client = pymongo.MongoClient(
... f"mongodb+srv://{user}:{password}@cluster0.n2hnd.mongodb.net/es_eso_importante?retryWrites=true&w=majority")
>>>
>>> db = client['test']
>>> source = db['coll']
>>> destination = db['coll_backup']
>>> pipeline = [ {"$match": {}},
... {"$out": "coll_backup"}]
>>> db.coll.aggregate(pipeline)
<pymongo.command_cursor.CommandCursor object at 0x00000214564785F8>
Aber ich habe keine Änderungen am MongoDB Atlas ...