将CouchDB数据从远程服务器复制到本地计算机

问题描述:

我最近开始使用CouchDB,只是遇到了一些小问题。将CouchDB数据从远程服务器复制到本地计算机

我试图从aremote服务器数据复制到使用 以下命令我的远程计算机:

curl -X POST -d '{"source":"http://xxx.xxx.xx.xxx:5984/testing_replicate","target":"http://localhost:5984:testing_replicate"}' http://localhost:5984/_replicate 

不知何故没有从这一响应命令。

curl -X GET http://localhost:5984/

curl -X GET http://xxx.xxx.xx.xxx:5984/ 

返回预期的响应:{"couchdb":"Welcome","version":"0.10.0"}

任何人都可以告诉我吗?

最好的问候。

您的目标网址中存在混乱。变化:

... "target":"http://localhost:5984:testing_replicate" ... 
           ^

... "target":"http://localhost:5984/testing_replicate" ... 
           ^
+0

喜,确定我意识到这点。谢谢! – DjangoRocks 2011-01-12 13:48:41