How can I copy one collection from MongoDB using pymongo and paste to another empty collection?
<ol>
<li>I want to copy full collection (e.g. name 'home').</li>
<li>Then do some changes in the 'home' collection or remove doc inside it (not a collection).</li>
<li>And then replace changed 'home' collection to its default state from item 1.</li>
</ol>

<p>I do next: </p>

<pre><code>db = client["database"]
home = db['home'].find()  # get collection.
db['home'].remove({})  # remove doc from home
for i in home:
      self.db['home'].insert(i)
</code></pre>

<p>But the collection is empty.</p>