Mercurial > hg > Feedworm
annotate replicate.sh @ 226:016c89dfd488
use our generic PyQtLib instead of custom Qt models in this project
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Thu, 22 May 2014 06:10:05 +0200 |
parents | 6cbd4420c187 |
children |
rev | line source |
---|---|
186
6cbd4420c187
when replicating, also compact the database
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
185
diff
changeset
|
1 # replicate all documents xanthippe's DB into the local DB |
179
c8393c2cd324
add script to trigger couchdb replication
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
2 curl -X POST \ |
c8393c2cd324
add script to trigger couchdb replication
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
3 http://localhost:5984/_replicate \ |
185 | 4 -d '{"source":"http://xanthippe:5984/feedworm", "target":"feedworm"}' \ |
5 -H "Content-Type: application/json" | |
6 | |
186
6cbd4420c187
when replicating, also compact the database
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
185
diff
changeset
|
7 # replicate all documents from the local DB into xanthippe's DB |
185 | 8 curl -X POST \ |
9 http://localhost:5984/_replicate \ | |
179
c8393c2cd324
add script to trigger couchdb replication
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
10 -d '{"source":"feedworm","target":"http://xanthippe:5984/feedworm"}' \ |
c8393c2cd324
add script to trigger couchdb replication
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
11 -H "Content-Type: application/json" |
186
6cbd4420c187
when replicating, also compact the database
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
185
diff
changeset
|
12 |
6cbd4420c187
when replicating, also compact the database
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
185
diff
changeset
|
13 # compact the local DB and views |
6cbd4420c187
when replicating, also compact the database
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
185
diff
changeset
|
14 curl -X POST -H "Content-Type: application/json" http://localhost:5984/feedworm/_compact |
6cbd4420c187
when replicating, also compact the database
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
185
diff
changeset
|
15 curl -X POST -H "Content-Type: application/json" http://localhost:5984/feedworm/_compact/feedworm |