annotate replicate.sh @ 193:c345a26febc2

add a toolbar icon for marking selected entries as read
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sat, 24 Sep 2011 08:07:23 +0200
parents 6cbd4420c187
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
0b4c8dc13b7c when replicating pull from remote first
dirk
parents: 179
diff changeset
4 -d '{"source":"http://xanthippe:5984/feedworm", "target":"feedworm"}' \
0b4c8dc13b7c when replicating pull from remote first
dirk
parents: 179
diff changeset
5 -H "Content-Type: application/json"
0b4c8dc13b7c when replicating pull from remote first
dirk
parents: 179
diff changeset
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
0b4c8dc13b7c when replicating pull from remote first
dirk
parents: 179
diff changeset
8 curl -X POST \
0b4c8dc13b7c when replicating pull from remote first
dirk
parents: 179
diff changeset
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