开发者

What's the least intrusive method for creating a backup of a couchdb database?

开发者 https://www.devze.com 2023-02-14 05:35 出处:网络
We\'re looking to create regular backups of 开发者_开发问答a couchdb database, to ship offsite. What\'s the least intrusive way to obtain these - ideally without interrupting or significantly slowing

We're looking to create regular backups of 开发者_开发问答a couchdb database, to ship offsite. What's the least intrusive way to obtain these - ideally without interrupting or significantly slowing down performance on the existing database server?


You could just copy the CouchDB database file. Read more about this here.


Why not use CouchDB replication to replicate the production database to another host where the backups can be performed?


You can also use couchdb-dump and couchdb-load for Backup and restore to normal text files.


If you are a Linux or MacOSX user you can use the couchdb-dump tool, which basically works on bash shell.

It dumps the database on a local file (ASCII text file), formatted as requested by http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API

Then you can restore it with the bulk document upload or with the couchdb-dump restore tool.

Backing up the files has the advantage of being very quick, but the disadvantage of working on local files which cannot be used when changing OS.

You can find other tools on github:

https://github.com/stockr-labs/couchdbdump

https://github.com/zebooka/couchdb-dump

0

精彩评论

暂无评论...
验证码 换一张
取 消