- Download the database:
curl http://localhost:5984/mydb/_all_docs?include_docs=true > mydb.json
- Change the first line from:
{"total_rows":1121,"offset":0,"rows":[
*TO*
{"docs":[
- create the database on your local couch
curl -X PUT http://127.0.0.1:5984/targetdb
- Upload the database:
curl -d @bulkload.json -H "Content-Type: application/json" -X POST http://localhost:5984/targetdb/_bulk_docs