CouchDB replicate ALL databases

couchdbdatabase-replicationreplication

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?

Best Answer

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.

Related Topic