Mercurial > hg > Feedworm
annotate replicate.sh @ 180:a4832a180c69
allow setting the URL to the database via command line
author | dirk |
---|---|
date | Sat, 10 Sep 2011 04:43:40 +0200 |
parents | c8393c2cd324 |
children | 0b4c8dc13b7c |
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" |