5

I have a CouchDB I'd like to replicate to another server in order to do backup dumps without taxing the production server. The production CouchDB has a varying number of databases and I'd like to sync everything and not worry about how many DBs are actually currently on the server.

Now the problem is that the GUI only allows you to configure replication for each DB individually (the same is for http requests). So far I've found various scripts and workarounds (this one looks like my best option so far: https://gist.github.com/janoskk/339d76a40b63969ea568) but no official support for this.

Is It possible that a database designed for syncing multiple servers doesn't have a sync all option?

2 Answers2

6

unfortunately, there is no sync all option. The possibilities you have are:

  • create a replication for each database in the replicator database
  • use a script like you found in your original question (did not test it)
  • copy all the .couch files from system a to b
  • wait for CouchDB 2.0 what will support clustering

;-)

I hope one of these solutions will get the job done. You are also welcome to join the mailinglist for any questions. Please see https://couchdb.apache.org/. user@ or dev@ is the choice you want.

awenkhh
  • 196
0

I just released a new tool called replicate-couchdb-cluster, which provides a fault tolerant way of replicating an entire cluster of DBs. It also allows for concurrency so it can greatly speed up the time it takes to replicate a cluster.

There is also a docker image that you can use to easily set up a continuous replication.

I hope this helps!

redgeoff
  • 201
  • 1
  • 6