我无法在两台couchdb服务器之间进行复制,因此我想从一台服务器转储到文件并从文件加载到另一台服务器。CouchDB转储到文件并从文件加载
我用这个语句来转储和它工作得很好:
curl -X GET http://localhost:5984/<DATABASE_NAME>/_all_docs?include_docs=true > FILE.txt
但是,当我用这个语句加载:
curl -d @FILE.txt -H “Content-Type: application/json” -X POST http://localhost:5984/<DATABASE_NAME>/_bulk_docs
它没有像这样:
curl: (6) Could not resolve host: application; Host not found {"error":"bad_content_type","reason":"Content-Type must be application/json"}
有任何想法吗?
将这个备份每个文件的修订版本? – user3526 2015-02-22 11:02:01