# HG changeset patch # User Dirk Olmes # Date 1315621973 -7200 # Node ID c8393c2cd32456ebfdcd895770061ec787da31a2 # Parent e8cc8698193834be04beb19f7c6a057436a48899 add script to trigger couchdb replication diff -r e8cc86981938 -r c8393c2cd324 replicate.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/replicate.sh Sat Sep 10 04:32:53 2011 +0200 @@ -0,0 +1,10 @@ +# replicate all documents from the local DB into Xanthippe's and vice versa +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"