Mercurial > hg > Feedworm
diff 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 |
line wrap: on
line diff
--- a/replicate.sh Sun Sep 11 07:44:11 2011 +0200 +++ b/replicate.sh Mon Sep 12 11:07:58 2011 +0200 @@ -1,10 +1,10 @@ # replicate all documents from the local DB into Xanthippe's and vice versa curl -X POST \ http://localhost:5984/_replicate \ + -d '{"source":"http://xanthippe:5984/feedworm", "target":"feedworm"}' \ + -H "Content-Type: application/json" + +curl -X POST \ + http://localhost:5984/_replicate \ -d '{"source":"feedworm","target":"http://xanthippe:5984/feedworm"}' \ -H "Content-Type: application/json" - -curl -X POST \ - http://localhost:5984/_replicate \ - -d '{"source":"http://xanthippe:5984/feedworm", "target":"feedworm"}' \ - -H "Content-Type: application/json"