| ... | ... | @@ -98,7 +98,7 @@ curl -u cal:9gWV3 http://127.0.0.1:5984/vl_db_work/ |
|
|
|
|
|
|
|
## Einbeziehen oder Ausschließen vom Replikationsprozess
|
|
|
|
|
|
|
|
- lokale Replikation von `vl_db` auf `vl_db_work` setzen (SERVER-IP erstezen):
|
|
|
|
- lokale Replikation von `vl_db` auf `vl_db_work` setzen. Dabei wird die `_replicator`-Datenbank erstellt (SERVER-IP erstetzen):
|
|
|
|
```
|
|
|
|
curl -X PUT http://admin:vakuum@SERVER-IP:5984/_replicator/vl_db@SERVER-IP--vl_db_work@SERVER-IP \
|
|
|
|
-H "Content-Type: application/json" \
|
| ... | ... | @@ -109,6 +109,12 @@ curl -X PUT http://admin:vakuum@SERVER-IP:5984/_replicator/vl_db@SERVER-IP--vl_d |
|
|
|
"owner": "admin"
|
|
|
|
}'
|
|
|
|
```
|
|
|
|
- Der Replikationsprozess findet im Allgemeinen automatisiert statt (??). Beispiel für das manuelle Anlegen einer Replikation (hier als Beispiel von `a75436` nach `a73435`):
|
|
|
|
```
|
|
|
|
curl -X PUT http://admin:vakuum@a75436.berlin.ptb.de:5984/_replicator/vl_db@a75436--vl_db@a73435 \
|
|
|
|
-H "Content-Type: application/json" \
|
|
|
|
-d '{"source": "http://admin:vakuum@a75436.berlin.ptb.de:5984/vl_db", "target": "http://admin:vakuum@a73435.berlin.ptb.de:5984/vl_db", "continuous": true, "owner": "admin"}'
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
| ... | ... | |
| ... | ... | |