Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

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?

share|improve this question
    
Serverfault would be a much better place for this, or perhaps SO –  TheLQ Feb 27 '11 at 16:53
add comment

2 Answers

up vote 1 down vote accepted

Luckily couchdb is append only, so just copy the file and you'll have a non-corrupt backup.

share|improve this answer
add comment

If you want to take a more programmatic approach just use the _all_docs URI, from wiki.apache.org

GET somedatabase/_all_docs HTTP/1.0

The response will get you a list of all the documents in the database.

Using replication to backup the database is another possibility.

Just post the source/target database names to the _replicate URI.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.