comparison replicate.sh @ 185:0b4c8dc13b7c

when replicating pull from remote first
author dirk
date Mon, 12 Sep 2011 11:07:58 +0200
parents c8393c2cd324
children 6cbd4420c187
comparison
equal deleted inserted replaced
184:006477cdc7de 185:0b4c8dc13b7c
1 # replicate all documents from the local DB into Xanthippe's and vice versa 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":"http://xanthippe:5984/feedworm", "target":"feedworm"}' \
5 -H "Content-Type: application/json"
6
2 curl -X POST \ 7 curl -X POST \
3 http://localhost:5984/_replicate \ 8 http://localhost:5984/_replicate \
4 -d '{"source":"feedworm","target":"http://xanthippe:5984/feedworm"}' \ 9 -d '{"source":"feedworm","target":"http://xanthippe:5984/feedworm"}' \
5 -H "Content-Type: application/json" 10 -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"