title: Mongodump with Replica Set : how to force on secondary?
body: <p>I have a strange problem with my MongoDB Replica Set backup. I have 2 servers (one primary and one secondary) and I run a backup task every 2 hours.</p>
  
  <p>I use this: <code>mongodump.exe --db MyBase --out "d:\Backups"</code></p>
  
  <p>But, when I run this backup, my client application (c#) throw errors like this :</p>
  
  <blockquote>
    <p>MongoDB.Driver.MongoConnectionException: Unable to connect to a member of the replica set matching the read preference Primary</p>
  </blockquote>
  
  <p>I thought that the mongodump does not have any impact like this on client applications. So, that to say.</p>
  
  <p>I'd like to force my backup operation on the secondary server only. How can I proceed? What is the command to run?</p>
  
  <p>Thank you for your help.</p>