-1
I want to copy a collection coll
to back up a database in Mongodb. So I tried:
>>> 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>
But I don’t have any changes to Atlas Mongodb.
If there are any other (free) alternatives I am ready to hear them.