annotate replicate.sh @ 179:c8393c2cd324

add script to trigger couchdb replication
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sat, 10 Sep 2011 04:32:53 +0200
parents
children 0b4c8dc13b7c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
179
c8393c2cd324 add script to trigger couchdb replication
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 # replicate all documents from the local DB into Xanthippe's and vice versa
c8393c2cd324 add script to trigger couchdb replication
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 curl -X POST \
c8393c2cd324 add script to trigger couchdb replication
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3 http://localhost:5984/_replicate \
c8393c2cd324 add script to trigger couchdb replication
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4 -d '{"source":"feedworm","target":"http://xanthippe:5984/feedworm"}' \
c8393c2cd324 add script to trigger couchdb replication
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 -H "Content-Type: application/json"
c8393c2cd324 add script to trigger couchdb replication
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6
c8393c2cd324 add script to trigger couchdb replication
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7 curl -X POST \
c8393c2cd324 add script to trigger couchdb replication
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8 http://localhost:5984/_replicate \
c8393c2cd324 add script to trigger couchdb replication
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9 -d '{"source":"http://xanthippe:5984/feedworm", "target":"feedworm"}' \
c8393c2cd324 add script to trigger couchdb replication
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10 -H "Content-Type: application/json"