# HG changeset patch # User dirk # Date 1315818478 -7200 # Node ID 0b4c8dc13b7ca7e0a3e3df6daaae2ba48e8c72ba # Parent 006477cdc7ded7284e8ae639c56ed401fc7aba82 when replicating pull from remote first diff -r 006477cdc7de -r 0b4c8dc13b7c replicate.sh --- 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"