Mercurial > hg > Feedworm
changeset 185:0b4c8dc13b7c
when replicating pull from remote first
author | dirk |
---|---|
date | Mon, 12 Sep 2011 11:07:58 +0200 |
parents | 006477cdc7de |
children | 6cbd4420c187 |
files | replicate.sh |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
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"