【发布时间】:2015-09-23 09:22:55
【问题描述】:
我需要将所有数据库中所有文档的内容保存在一个文件中。我知道我可以使用 curl 从一个数据库中获取所有文档:
curl -X GET http://localhost:5984/dbname/_all_docs?include_docs=true
我为所有数据库尝试这个:
curl -X GET http://localhost:5984/_all_dbs/_all_docs?include_docs=true
但它不起作用。
【问题讨论】:
-
你在什么环境下运行curl?我认为不可能在一个请求中获取所有文档,因为它会破坏数据,但您可以为它编写一个脚本。
-
我从终端 (os x) 运行它。