Skip to content

Instantly share code, notes, and snippets.

View sofuture's full-sized avatar
:shipit:

Jeff Zellner sofuture

:shipit:
View GitHub Profile
@sofuture
sofuture / gist:4068264
Created November 13, 2012 20:41 — forked from fdmanana/gist:832610
The CouchDB replicator database

1. Introduction to the replicator database

A database where you PUT/POST documents to trigger replications and you DELETE to cancel ongoing replications. These documents have exactly the same content as the JSON objects we used to POST to /_replicate/ (fields "source", "target", "create_target", "continuous", "doc_ids", "filter", "query_params".

Replication documents can have a user defined "_id". Design documents (and _local documents) added to the replicator database are ignored.

The default name of this database is _replicator. The name can be changed in the .ini configuration, section [replicator], parameter db.

2. Basics