如何复制CouchDB数据库?
我想复制CouchDB数据库 遗憾的是,我犯了一个错误:如何复制CouchDB数据库?,couchdb,Couchdb,我想复制CouchDB数据库 遗憾的是,我犯了一个错误: $ curl -X POST -H "Content-Type:application/json" -d '{"source":"https://kirelabs.cloudant.com/detexify","target":"detexify"}' http://localhost:5984/_replicate {"error":"checkpoint_commit_failure","reason":"Failure on sou
$ curl -X POST -H "Content-Type:application/json" -d '{"source":"https://kirelabs.cloudant.com/detexify","target":"detexify"}' http://localhost:5984/_replicate
{"error":"checkpoint_commit_failure","reason":"Failure on source commit: {error,<<\"unauthorized\">>}"}
这似乎是以下错误:
有谁能告诉我这附近有没有工作?我怎样才能得到数据
失败的尝试
一个简单快捷的解决办法是不使用检查点 {来源:https://kirelabs.cloudant.com/detexify,target:detexify,使用检查点:false} 我尝试了这个请求,并成功地复制了您的数据 更新 我又试了一次,复制对我来说似乎很好。在取消复制之前,我复制了22.7 mb的数据。我附上了一个截图
curl -X POST -H "Content-Type:application/json" -d '{"source":"https://kirelabs.cloudant.com/detexify",
"target":"detexify",
"use_checkpoints":false,"create_target":true}' http://ABBA:dancing-queen@localhost:5984/_replicate
复制命令是从您更新的示例中逐字复制的,除了本地数据库上的create_target选项和admin basic身份验证之外
curl -X POST -H "Content-Type:application/json" -d '{"source":"https://kirelabs.cloudant.com/detexify",
"target":"detexify",
"use_checkpoints":false,"create_target":true}' http://ABBA:dancing-queen@localhost:5984/_replicate