Created
March 7, 2018 03:12
-
-
Save artisandhq/022158cf2574fba9288eb845efeaccad to your computer and use it in GitHub Desktop.
1. replication from local to server (or anything else)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -H 'Content-Type: application/json' -X POST http://localhost:5984/_replicate -d ' {"source": "http://localhost:5984/bec-ember-three/", "target": "http://128.199.160.40:5984/bec-ember-recover"}' | |
curl -X POST http://128.199.160.40:5984/_replicate -H "Content-Type: application/json" -d '{"source": "test_database", "target":"bec-practice", "doc_ids": ["practices"]}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment