CouchDB backups and cloning the database

后端 未结 5 1598
情歌与酒
情歌与酒 2021-01-30 16:58

We\'re looking at CouchdDB for a CMS-ish application. What are some common patterns, best practices and workflow advice surrounding backing up our production database?

I

5条回答
  •  自闭症患者
    2021-01-30 17:37

    CouchDB supports replication, so just replicate to another instance of CouchDB and backup from there, avoiding disturbing where you write changes to.

    http://wiki.apache.org/couchdb/FrequentlyAskedQuestions#how_replication

    You literally send a POST request to your CouchDB instance telling it where to replicate to, and it Works(tm)

    EDIT: You can just cp out the files from under the running database as long as you can accept the I/O hit.

提交回复
热议问题