title: CouchDB dump to file and load from file
body: <p>I cannot replicate between two couchdb servers, so I would like to dump to file from one server and load from file into the other server.</p>
  
  <p>I used this statement to dump and it worked fine:</p>
  
  <pre><code>curl -X GET http://localhost:5984/&lt;DATABASE_NAME&gt;/_all_docs?include_docs=true &gt; FILE.txt
  </code></pre>
  
  <p>But when I used this statement to load:</p>
  
  <pre><code>curl -d @FILE.txt -H “Content-Type: application/json” -X POST http://localhost:5984/&lt;DATABASE_NAME&gt;/_bulk_docs
  </code></pre>
  
  <p>it failed like this:</p>
  
  <pre><code>curl: (6) Could not resolve host: application; Host not found {"error":"bad_content_type","reason":"Content-Type must be application/json"}
  </code></pre>
  
  <p>Any ideas?</p>