comparison 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
comparison
equal deleted inserted replaced
178:e8cc86981938 179:c8393c2cd324
1 # replicate all documents from the local DB into Xanthippe's and vice versa
2 curl -X POST \
3 http://localhost:5984/_replicate \
4 -d '{"source":"feedworm","target":"http://xanthippe:5984/feedworm"}' \
5 -H "Content-Type: application/json"
6
7 curl -X POST \
8 http://localhost:5984/_replicate \
9 -d '{"source":"http://xanthippe:5984/feedworm", "target":"feedworm"}' \
10 -H "Content-Type: application/json"