Mercurial > hg > Feedworm
annotate replicate.sh @ 182:964661153b97
hide read feed entries if configured
author | dirk |
---|---|
date | Sat, 10 Sep 2011 09:15:25 +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" |