Skip to content

Instantly share code, notes, and snippets.

@pulsation
Last active December 21, 2015 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pulsation/6342860 to your computer and use it in GitHub Desktop.
Save pulsation/6342860 to your computer and use it in GitHub Desktop.
CouchDB replication task that works with views, to be put in _replicator database.
{
"_id": "replication_task",
"source": "https://user:pass@example.iriscouch.com:6984/source-database",
"target": "target-database",
"user_ctx": {
"user": "admin",
"roles": [
"_admin"
]
},
"doc_ids": [
"_design/view_name"
],
"continuous": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment