Skip to content

Instantly share code, notes, and snippets.

@richardoey
Created March 7, 2018 03:12
Show Gist options
  • Save richardoey/022158cf2574fba9288eb845efeaccad to your computer and use it in GitHub Desktop.
Save richardoey/022158cf2574fba9288eb845efeaccad to your computer and use it in GitHub Desktop.
1. replication from local to server (or anything else)
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