Mercurial > hg > Feedworm
view replicate.sh @ 258:4ca1fac32dde
Pull the constant of days to keep feed entries into the abstract class
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Tue, 12 Mar 2019 02:39:18 +0100 |
parents | 6cbd4420c187 |
children |
line wrap: on
line source
# replicate all documents xanthippe's DB into the local DB curl -X POST \ http://localhost:5984/_replicate \ -d '{"source":"http://xanthippe:5984/feedworm", "target":"feedworm"}' \ -H "Content-Type: application/json" # replicate all documents from the local DB into xanthippe's DB curl -X POST \ http://localhost:5984/_replicate \ -d '{"source":"feedworm","target":"http://xanthippe:5984/feedworm"}' \ -H "Content-Type: application/json" # compact the local DB and views curl -X POST -H "Content-Type: application/json" http://localhost:5984/feedworm/_compact curl -X POST -H "Content-Type: application/json" http://localhost:5984/feedworm/_compact/feedworm