Mercurial > hg > Feedworm
changeset 179:c8393c2cd324
add script to trigger couchdb replication
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sat, 10 Sep 2011 04:32:53 +0200 |
parents | e8cc86981938 |
children | a4832a180c69 |
files | replicate.sh |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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"