cmp.worker.replicate-db

gen-req

(gen-req {s :SourceDB, t :TargetDB})

gen-url

(gen-url)

replicate!

(replicate! {state-key :StateKey, :as task})

Replicate a database (CouchDB) by posting:

{
  "_id": "my_rep",
  "source": "http://myserver.com/foo",
  "target":  "http://user:pass@localhost:5984/bar"
}

to the /_replicate endpoint.